Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
claimType
Type: System.StringThe type of the claim.
claimValue
Type: System.StringThe value of the claim. See Value.
claimValueType
Type: System.StringThe value type of the claim. See ValueType.
claimOriginalIssuer
Type: System.StringThe original issuer of the claim. See OriginalIssuer.
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