Disposes the managed object. If the object is not specified, releases the specified COM object.

Namespace: BlueCieloECM.InnoCielo.Meridian
Assembly: BlueCieloECM.InnoCielo.Meridian (in BlueCieloECM.InnoCielo.Meridian.dll) Version: 1.4.0.0 (1.4.40.0)

Syntax

C#
public static void DisposeOrRelease(
	IDisposable anObject,
	Object comObject
)
Visual Basic
Public Shared Sub DisposeOrRelease ( _
	anObject As IDisposable, _
	comObject As Object _
)
Visual C++
public:
static void DisposeOrRelease(
	IDisposable^ anObject, 
	Object^ comObject
)

Parameters

anObject
Type: System..::..IDisposable
The managed object to dispose. If nullNothingnullptra null reference (Nothing in Visual Basic), then comObject references to the COM object to release.
comObject
Type: System..::..Object
The COM object to release. Will be released only if the anObject is nullNothingnullptra null reference (Nothing in Visual Basic). If nullNothingnullptra null reference (Nothing in Visual Basic), then the method does nothing.

See Also