Share via


SPActiveDirectoryClaimProvider.GetSecurityIdentifierFromClaim method (SPClaim)

Extracts the equivalent SecurityIdentifier from a claim representing an Active Directory user or security group.

Namespace:  Microsoft.SharePoint.Administration.Claims
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Shared Function GetSecurityIdentifierFromClaim ( _
    claim As SPClaim _
) As SecurityIdentifier
'Usage
Dim claim As SPClaim
Dim returnValue As SecurityIdentifier

returnValue = SPActiveDirectoryClaimProvider.GetSecurityIdentifierFromClaim(claim)
public static SecurityIdentifier GetSecurityIdentifierFromClaim(
    SPClaim claim
)

Parameters

Return value

Type: System.Security.Principal.SecurityIdentifier
An object that represents the security identifier.

Exceptions

Exception Condition
ArgumentNullException

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

ArgumentException

The claim user and claim security group do not exist.

See also

Reference

SPActiveDirectoryClaimProvider class

SPActiveDirectoryClaimProvider members

GetSecurityIdentifierFromClaim overload

Microsoft.SharePoint.Administration.Claims namespace