Share via


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