Class X12Disposable
This abstract class handles resource clean up for derived X12 objects.
Note
Internal use only: This class is not ment to be used by the user.
Namespace: Bishop.X12
Assembly: Bishop.X12.dll
Syntax
public class X12Disposable : IDisposable
Constructors
X12Disposable()
Returns true if derived object is disposed
Declaration
protected X12Disposable()
Properties
Handle
Handle to the unmanaged resource in usue by derived objects
Declaration
protected HandleRef Handle { get; set; }
Property Value
Type | Description |
---|---|
System.Runtime.InteropServices.HandleRef | null if invalid or a reference handle to unmanaged X12 SDK resource |
IsDisposed
Returns true if derived X12 SDK object has already been disposed
Declaration
public bool IsDisposed { get; }
Property Value
Type | Description |
---|---|
System.Boolean | true if disposed else false |
IsHandleValid
Returns true if the handle to the X12 SDK native object is valid
Declaration
public bool IsHandleValid { get; }
Property Value
Type | Description |
---|---|
System.Boolean | true if valid else false |
Methods
Dispose()
Disposes the current derived X12 SDK object freeing up allocated resources
Declaration
public void Dispose()
Dispose(Boolean)
Override in derived class to handle disposing of allocated resources.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
Finalize()
Declaration
protected void Finalize()
Free()
Closes and disposes resources associated with the x12Object handle
Declaration
public virtual void Free()
GetHandle()
Declaration
public nint GetHandle()
Returns
Type | Description |
---|---|
System.IntPtr |