共用方式為


SPClaimEntityTypes.ConvertFromPrincipalType Method

Performs a conversion from principal types to entity types.

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

Syntax

'Declaration
Public Shared Function ConvertFromPrincipalType ( _
    contextUri As Uri, _
    principalType As SPPrincipalType _
) As String()
'Usage
Dim contextUri As Uri
Dim principalType As SPPrincipalType
Dim returnValue As String()

returnValue = SPClaimEntityTypes.ConvertFromPrincipalType(contextUri, _
    principalType)
public static string[] ConvertFromPrincipalType(
    Uri contextUri,
    SPPrincipalType principalType
)

Parameters

  • contextUri
    Type: System.Uri

    The context, as a URI. This must be a properly formatted URI.

Return Value

Type: []
A String array of SPClaimEntityTypes that is equivalent to the input.

Remarks

Some entity types are considered to have an equivalence relationship to SPPrincipalType types. This method performs a conversion for those cases that are possible to be converted.

See Also

Reference

SPClaimEntityTypes Class

SPClaimEntityTypes Members

Microsoft.SharePoint.Administration.Claims Namespace