KerberosToken2.Dispose Method
Releases all resources used by the KerberosToken2.
Namespace: Microsoft.Web.Services2.Security.Tokens
Assembly: Microsoft.Web.Services2 (in microsoft.web.services2.dll)
Usage
'Usage
Dim kerberosToken21 As KerberosToken2
kerberosToken21.Dispose()
Syntax
'Declaration
Public NotOverridable Sub Dispose()
public sealed void Dispose();
public: Void Dispose();
public final void Dispose();
public final function Dispose();
Remarks
Call Dispose when you are finished using the KerberosToken2. The Dispose method leaves the KerberosToken2 in an unusable state. After calling Dispose, you must release all references to the KerberosToken2 so the garbage collector can reclaim the memory that the KerberosToken2 was occupying.
Note
Always call Dispose before you release your last reference to the KerberosToken2. Otherwise, the resources it is using will not be freed until the garbage collector calls the KerberosToken2 object's Finalize method.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, and Windows 2000
Target Platforms
Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server, Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, Pocket PC, Windows CE, Smart Phone
See Also
Reference
KerberosToken2 Class
Microsoft.Web.Services2.Security.Tokens Namespace