Share via


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

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.

See also

Reference

SPClaimProviderManager class

SPClaimProviderManager members

Microsoft.SharePoint.Administration.Claims namespace