Removes all Claims from this collection.
Namespace: Microsoft.IdentityModel.Claims
Assembly: Microsoft.IdentityModel (in microsoft.identitymodel.dll)

Usage

Visual Basic
Dim instance As ClaimCollection

instance.Clear

Syntax

Visual Basic
Public Sub Clear
C#
public void Clear ()
C++
public:
virtual void Clear () sealed
J#
public final void Clear ()
JScript
public final function Clear ()

Remarks

The P:Microsoft.IdentityModel.Claims.Claim.Subject property of every T:Microsoft.IdentityModel.Claims.Claim removed from the collection is set to null.


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