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
claim
Type: Microsoft.SharePoint.Administration.Claims.SPClaimA claim object representing an Active Directory user (see CreateUserClaim(String)) or security group user (see CreateSecurityGroupClaim(String)).
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