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.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2011 All Rights Reserved.