共用方式為


SPPrincipal members

Include protected members
Include inherited members

代表使用者或群組,可指定在Microsoft SharePoint Foundation中的使用權限,來控制安全性。

The SPPrincipal type exposes the following members.

Properties

  Name Description
Public property ID 取得主體的識別項 (ID)。 (Overrides SPMember.ID.)
Public property IsHiddenInUI 取得值,這個值,指出是否應該在 UI 中隱藏這個成員。
Public property LoginName 實作這個抽象屬性,以取得字串,包含使用者的登入名稱。
Public property Name 取得或設定主體的名稱。
Public property ParentWeb 取得主體中的父網站之內。
Public property Roles Obsolete. 取得與主體關聯的角色集合。

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Protected method GetField 保留給內部使用。
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method InitMember 初始化成員。
Protected method MemberwiseClone (Inherited from Object.)
Protected method SetField 設定使用者或群組的欄位。
Public method ToString (Inherited from Object.)

Top

Fields

  Name Description
Protected field m_arrMembersData 將成員資料儲存為二維陣列。
Protected field m_bDataInitialized 包含布林值,指出資料是否已初始化。
Protected field m_index 包含到m_arrMembersData的陣列的索引,目前的成員。
Protected field m_web 儲存 Web 站台物件。

Top

請參閱

參照

SPPrincipal class

Microsoft.SharePoint namespace