Principal class

Represents a user or group that can be assigned permissions to control security.

Inheritance hierarchy

System.Object
  Microsoft.SharePoint.Client.ClientObject
    Microsoft.SharePoint.Client.Principal
      Microsoft.SharePoint.Client.Group
      Microsoft.SharePoint.Client.User

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

Syntax

'Declaration
Public Class Principal _
    Inherits ClientObject
'Usage
Dim instance As Principal
public class Principal : ClientObject

Remarks

When a user or group is added to a site, the user or group is the principal. The Principal object can represent one of the following types of users or groups:

  • Windows user

  • Windows group

  • Non-Windows user (provided through ASP.NET membership provider)

  • Non-Windows group (provided through ASP.NET roles provider)

  • SharePoint groups

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

Principal members

Microsoft.SharePoint.Client namespace