SPClaimProviderManager.ConvertIdentifierToClaim Method
Converts a unique identifier into a claim.
Namespace: Microsoft.SharePoint.Administration.Claims
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Function ConvertIdentifierToClaim ( _
identifier As String, _
type As SPIdentifierTypes _
) As SPClaim
'Usage
Dim instance As SPClaimProviderManager
Dim identifier As String
Dim type As SPIdentifierTypes
Dim returnValue As SPClaim
returnValue = instance.ConvertIdentifierToClaim(identifier, _
type)
public SPClaim ConvertIdentifierToClaim(
string identifier,
SPIdentifierTypes type
)
Parameters
identifier
Type: System.StringThe identifier to convert.
type
Type: Microsoft.SharePoint.Administration.Claims.SPIdentifierTypesThe identifier type.
Return Value
Type: Microsoft.SharePoint.Administration.Claims.SPClaim
A claim representing the identifier.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Thrown when identifier is a null reference (Nothing in Visual Basic). |
ArgumentException | Thrown when type is not one of the valid SPIdentifierTypes. |