Partilhar via


SPPrincipal Members

Include Protected Members
Include Inherited Members

Represents a user or group that can be assigned permissions in Microsoft SharePoint Foundation to control security.

The SPPrincipal type exposes the following members.

Properties

  Name Description
Public property ID Gets the identifier (ID) of the principal. (Overrides SPMember.ID.)
Public property LoginName Implement this abstract property to get a string that contains the login name of the user.
Public property Name Gets or sets the name of the principal.
Public property ParentWeb Gets the parent Web site for the principal.
Public property Roles Obsolete. Gets the collection of roles associated with the principal.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Protected method GetField Reserved for internal use.
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method InitMember Initializes the member.
Protected method MemberwiseClone (Inherited from Object.)
Protected method SetField
Public method ToString (Inherited from Object.)

Top

Fields

  Name Description
Protected field m_arrMembersData Stores the member data as a two-dimensional array.
Protected field m_bDataInitialized Contains a Boolean value indicating whether the data is initialized.
Protected field m_index Contains the index into the m_arrMembersData array for the current member.
Protected field m_web Stores the Web site object.

Top

See Also

Reference

SPPrincipal Class

Microsoft.SharePoint Namespace