CommerceContext.RegisterDisposable (Object) Method (BCL)
Use this method to register page-scoped objects for disposal. These objects will become invalid after the request is done processing and the instance of the CommerceContext class is disposed.
Definition
[Visual Basic .NET]
Public Sub RegisterDisposable( _ByValdisposableObject As System.Object _
)
[C#]
public void RegisterDisposable(System.ObjectdisposableObject);
Parameters
[Visual Basic .NET]
- disposableObject
The object that implements the IDisposable interface or a __COMObject type.
[C#]
- disposableObject
The object that implements the IDisposable interface or a __COMObject type.
Remarks
In checked mode, this method will ensure that the object implements either the IDisposable interface or is a type of __COMObject. If it is not, then it will raise an error with the DebugContext object for the application.
Requirements
Namespace: Microsoft.CommerceServer.Runtime
Platforms: Windows 2000, Windows Server 2003
Assembly: Microsoft.CommerceServer.Runtime.dll
See Also
Copyright © 2005 Microsoft Corporation.
All rights reserved.