ESRI.ArcGIS.ADF.Connection.Local
ManageLifetime Method
See Also  Send Feedback
ESRI.ArcGIS.ADF Namespace > ComReleaser Class : ManageLifetime Method




o
The COM object to manage.
Manages the lifetime of any COM object. The method will deterministically release the object during the dispose process.

Syntax

Visual Basic (Declaration) 
Public Sub ManageLifetime( _
   ByVal o As Object _
) 
Visual Basic (Usage)Copy Code
Dim instance As ComReleaser
Dim o As Object
 
instance.ManageLifetime(o)
C# 
public void ManageLifetime( 
   object o
)

Parameters

o
The COM object to manage.

Remarks

Marshal.ReleaseComObject will be called during the disposal process on this Interface pointer until its RCW reference count becomes 0. NOTE: Do not add ServerObject interfaces like IMapServer, IGeocodeServer, IMapServerLayout or IMapServerObjects.

See Also

© 2010 All Rights Reserved.