共用方式為


SPClaimEntityTypes.ConvertToPrincipalType Method

Performs a conversion from entity types to principal types.

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

Syntax

'Declaration
Public Shared Function ConvertToPrincipalType ( _
    entityType As String _
) As SPPrincipalType
'Usage
Dim entityType As String
Dim returnValue As SPPrincipalType

returnValue = SPClaimEntityTypes.ConvertToPrincipalType(entityType)
public static SPPrincipalType ConvertToPrincipalType(
    string entityType
)

Parameters

  • entityType
    Type: System.String

    The entity type value to convert to equivalent type

Return Value

Type: Microsoft.SharePoint.Utilities.SPPrincipalType
The SPPrincipalType matching the entityType. If no match is made then the principal type of None is returned.

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