Releases the unmanaged resources used by the System.Security.Principal.WindowsIdentity and optionally releases the managed resources.
Namespace: Microsoft.IdentityModel.Claims
Assembly: Microsoft.IdentityModel (in microsoft.identitymodel.dll)

Usage

Visual Basic
Dim disposing As Boolean

Me.Dispose(disposing)

Syntax

Visual Basic
Protected Overrides Sub Dispose ( _
		disposing As Boolean _
)
C#
protected override void Dispose (
		bool disposing
)
C++
protected:
virtual void Dispose (
		bool disposing
) override
J#
protected void Dispose (
		boolean disposing
)
JScript
protected override function Dispose (
		disposing : boolean
)

Parameters

disposing

True to release both managed and unmanaged resources; false to release only unmanaged resources.

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 Server 2003, Windows Vista

Target Platforms

Windows Server 2008, Windows Vista, Not tested on Windows XP

See Also