共用方式為


SPClaimProviderManager.GetUserIdentifierEncodedClaim Method (String)

Extracts the EncodeClaim(SPClaim)-encoded SPClaim from the identity.

Namespace:  Microsoft.SharePoint.Administration.Claims
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Function GetUserIdentifierEncodedClaim ( _
    identityName As String _
) As String
'Usage
Dim instance As SPClaimProviderManager
Dim identityName As String
Dim returnValue As String

returnValue = instance.GetUserIdentifierEncodedClaim(identityName)
public string GetUserIdentifierEncodedClaim(
    string identityName
)

Parameters

Return Value

Type: System.String
An EncodeClaim(SPClaim)-encoded SPClaim representing the identity parameter.

Exceptions

Exception Condition
ArgumentNullException

The identityName parameter is a null reference (Nothing in Visual Basic) or empty.

ArgumentException

The identity does not contain an encoded claim.

See Also

Reference

SPClaimProviderManager Class

SPClaimProviderManager Members

GetUserIdentifierEncodedClaim Overload

Microsoft.SharePoint.Administration.Claims Namespace