Export (0) Print
Expand All

Claim.CreateWindowsSidClaim Method

Creates a Claim object that represents the specified security identifier (SID).

Namespace:  System.IdentityModel.Claims
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

static member CreateWindowsSidClaim : 
        sid:SecurityIdentifier -> Claim

Parameters

sid
Type: System.Security.Principal.SecurityIdentifier

A SecurityIdentifier that represents the SID.

Return Value

Type: System.IdentityModel.Claims.Claim
A Claim that represents the SID specified in the sid parameter.

ExceptionCondition
ArgumentNullException

sid is a null reference (Nothing in Visual Basic).

The Claim object this method creates has the property values shown in the following table.

Property

Value

ClaimType

Sid

Resource

The value of the sid parameter.

Right

PossessProperty.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft