Share via


SPClaim.ToEncodedString method

Encodes the value of the current claim object into a string.

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

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel := True)> _
Public Function ToEncodedString As String
'Usage
Dim instance As SPClaim
Dim returnValue As String

returnValue = instance.ToEncodedString()
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel = true)]
public string ToEncodedString()

Return value

Type: System.String
Returns the String representation of the value of the current claim object.

Remarks

The result of this method can be used in other areas of the SharePoint object model where a string-based login name is expected.

See also

Reference

SPClaim class

SPClaim members

Microsoft.SharePoint.Administration.Claims namespace