Share via


SPActiveDirectoryClaimProvider.GetNTAccountFromClaim method (SPClaim)

Extracts the equivalent NTAccount information 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 GetNTAccountFromClaim ( _
    claim As SPClaim _
) As NTAccount
'Usage
Dim claim As SPClaim
Dim returnValue As NTAccount

returnValue = SPActiveDirectoryClaimProvider.GetNTAccountFromClaim(claim)
public static NTAccount GetNTAccountFromClaim(
    SPClaim claim
)

Parameters

Return value

Type: System.Security.Principal.NTAccount
An object that represents the NT account.

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

GetNTAccountFromClaim overload

Microsoft.SharePoint.Administration.Claims namespace