Compartilhar via


SPPrincipalInfo.PrincipalType Property

Gets the principal type.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
<ClientCallableAttribute> _
<ClientCallableConstraintAttribute(Type := ClientCallableConstraintType.Custom, Value := "It MUST NOT be a combination of more than one member of the PrincipalType enumeration. It MUST NOT be PrincipalType.All.",  _
    FixedId := "1")> _
Public ReadOnly Property PrincipalType As SPPrincipalType
    Get
'Usage
Dim instance As SPPrincipalInfo
Dim value As SPPrincipalType

value = instance.PrincipalType
[ClientCallableAttribute]
[ClientCallableConstraintAttribute(Type = ClientCallableConstraintType.Custom, Value = "It MUST NOT be a combination of more than one member of the PrincipalType enumeration. It MUST NOT be PrincipalType.All.", 
    FixedId = "1")]
public SPPrincipalType PrincipalType { get; }

Property Value

Type: Microsoft.SharePoint.Utilities.SPPrincipalType
A string that contains the principal type.

See Also

Reference

SPPrincipalInfo Class

SPPrincipalInfo Members

Microsoft.SharePoint.Utilities Namespace