UtilsDisposeOrRelease Method |
Disposes the managed object. If the object is not specified, releases the specified COM object.
Namespace: BlueCieloECM.InnoCielo.MeridianAssembly: BlueCieloECM.InnoCielo.Meridian (in BlueCieloECM.InnoCielo.Meridian.dll) Version: 4.0.0.0 (4.0.19.0)
Syntax public static void DisposeOrRelease(
IDisposable anObject,
Object comObject
)
Public Shared Sub DisposeOrRelease (
anObject As IDisposable,
comObject As Object
)
public:
static void DisposeOrRelease(
IDisposable^ anObject,
Object^ comObject
)
static member DisposeOrRelease :
anObject : IDisposable *
comObject : Object -> unit
Parameters
- anObject
- Type: SystemIDisposable
The managed object to dispose. If , then comObject
references to the COM object to release.
- comObject
- Type: SystemObject
The COM object to release. Will be released only if the anObject
is . If , then the method does nothing.
See Also