Partilhar via


SPPrincipalInfo Class

Provides access to information about the current principal.

Inheritance Hierarchy

System.Object
  Microsoft.SharePoint.Utilities.SPPrincipalInfo

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

Syntax

'Declaration
<ClientCallableTypeAttribute(Name := "PrincipalInfo", ServerTypeId := "{c88e4d2e-768d-4065-9da4-d2880e08733e}",  _
    ValueObject := True)> _
<SubsetCallableTypeAttribute> _
Public NotInheritable Class SPPrincipalInfo
'Usage
Dim instance As SPPrincipalInfo
[ClientCallableTypeAttribute(Name = "PrincipalInfo", ServerTypeId = "{c88e4d2e-768d-4065-9da4-d2880e08733e}", 
    ValueObject = true)]
[SubsetCallableTypeAttribute]
public sealed class SPPrincipalInfo

Remarks

Use the SPPrincipal object to represent the principal.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

SPPrincipalInfo Members

Microsoft.SharePoint.Utilities Namespace