共用方式為


SPClaimProviderManager.EncodeClaim Method

Encodes an SPClaim object into a String.

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

Syntax

'Declaration
Public Function EncodeClaim ( _
    claim As SPClaim _
) As String
'Usage
Dim instance As SPClaimProviderManager
Dim claim As SPClaim
Dim returnValue As String

returnValue = instance.EncodeClaim(claim)
public string EncodeClaim(
    SPClaim claim
)

Parameters

Return Value

Type: System.String
A string that contains an encoded representation of the SPClaim object.

Exceptions

Exception Condition
ArgumentNullException

The claim parameter is a null reference (Nothing in Visual Basic).

ArgumentException

The ClaimType parameter is UserIdentifier or DefaultNameClaimType().

See Also

Reference

SPClaimProviderManager Class

SPClaimProviderManager Members

Microsoft.SharePoint.Administration.Claims Namespace