共用方式為


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