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
claim
Type: Microsoft.SharePoint.Administration.Claims.SPClaimA claim object.
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(). |