共用方式為


SPPrincipalInfo.PrincipalType property

取得主體的型別。

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
Public ReadOnly Property PrincipalType As SPPrincipalType
    Get
'用途
Dim instance As SPPrincipalInfo
Dim value As SPPrincipalType

value = instance.PrincipalType
public SPPrincipalType PrincipalType { get; }

Property value

Type: Microsoft.SharePoint.Utilities.SPPrincipalType
字串,包含主體的型別。

請參閱

參照

SPPrincipalInfo class

SPPrincipalInfo members

Microsoft.SharePoint.Utilities namespace