Creates a Windows SID Claim from the given WindowsClaimsIdentity.
Namespace: Microsoft.IdentityModel.Claims
Assembly: Microsoft.IdentityModel (in microsoft.identitymodel.dll)

Usage

Visual Basic
Dim returnValue As Claim

returnValue = Me.CreatePrimarySidClaim

Syntax

Visual Basic
Protected Function CreatePrimarySidClaim As Claim
C#
protected Claim CreatePrimarySidClaim ()
C++
protected:
Claim^ CreatePrimarySidClaim ()
J#
protected Claim CreatePrimarySidClaim ()
JScript
protected function CreatePrimarySidClaim () : Claim

Return Value

Windows SID Claim. Can be null.

Exceptions

Exception type Condition

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