Share via


SPActiveDirectoryClaimProvider.GetNTAccountFromClaim method (String, String, String, String)

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 ( _
    claimType As String, _
    claimValue As String, _
    claimValueType As String, _
    claimOriginalIssuer As String _
) As NTAccount
'Usage
Dim claimType As String
Dim claimValue As String
Dim claimValueType As String
Dim claimOriginalIssuer As String
Dim returnValue As NTAccount

returnValue = SPActiveDirectoryClaimProvider.GetNTAccountFromClaim(claimType, _
    claimValue, claimValueType, claimOriginalIssuer)
public static NTAccount GetNTAccountFromClaim(
    string claimType,
    string claimValue,
    string claimValueType,
    string claimOriginalIssuer
)

Parameters

Return value

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

Exceptions

Exception Condition
ArgumentException

The claim data passed was not a user or security group claim.

See also

Reference

SPActiveDirectoryClaimProvider class

SPActiveDirectoryClaimProvider members

GetNTAccountFromClaim overload

Microsoft.SharePoint.Administration.Claims namespace