共用方式為


SPRole members

Include protected members
Include inherited members

NOTE: This API is now obsolete.

請改用新的SPRoleDefinitionSPRoleAssignment類別,來定義角色,並將使用者指派給它們。如需詳細資訊,請參閱Changes in the Authorization Object Model。(在Windows SharePoint Services 2.0, SPRole表示網站群組和維護回溯相容性。)

The SPRole type exposes the following members.

Properties

  Name Description
Public property Description Obsolete. 請改用新的SPRoleDefinitionSPRoleAssignment類別,來定義角色,並將使用者指派給它們。如需詳細資訊,請參閱Changes in the Authorization Object Model。(在Windows SharePoint Services 2.0, Description屬性傳回或設定角色的描述和維護回溯相容性。)
Public property Groups Obsolete. 請改用新的SPRoleDefinitionSPRoleAssignment類別,來定義角色,並將使用者指派給它們。如需詳細資訊,請參閱Changes in the Authorization Object Model。(在Windows SharePoint Services 2.0, Groups屬性傳回群組所指派給角色,並維護回溯相容性的集合)。
Public property ID Obsolete. 請改用新的SPRoleDefinitionSPRoleAssignment類別,來定義角色,並將使用者指派給它們。如需詳細資訊,請參閱Changes in the Authorization Object Model。(在Windows SharePoint Services 2.0, ID屬性傳回該角色的成員識別碼和維護回溯相容性。) (Overrides SPMember.ID.)
Public property Name Obsolete. 請改用新的SPRoleDefinitionSPRoleAssignment類別,來定義角色,並將使用者指派給它們。如需詳細資訊,請參閱Changes in the Authorization Object Model。(在Windows SharePoint Services 2.0, Name屬性傳回或設定角色的名稱和維護回溯相容性。)
Public property ParentWeb Obsolete. 請改用新的SPRoleDefinitionSPRoleAssignment類別,來定義角色,並將使用者指派給它們。如需詳細資訊,請參閱Changes in the Authorization Object Model。(在Windows SharePoint Services 2.0, ParentWeb屬性傳回父網站的角色和維護回溯相容性。)
Public property PermissionMask Obsolete. 請改用新的SPRoleDefinitionSPRoleAssignment類別,來定義角色,並將使用者指派給它們。如需詳細資訊,請參閱Changes in the Authorization Object Model。(在Windows SharePoint Services 2.0, PermissionMask屬性傳回或設定角色的權限遮罩被維持為回溯相容性。)
Public property Type Obsolete. 請改用新的SPRoleDefinitionSPRoleAssignment類別,來定義角色,並將使用者指派給它們。如需詳細資訊,請參閱Changes in the Authorization Object Model。(在Windows SharePoint Services 2.0, Type屬性傳回的角色類型維護回溯相容性。)
Public property Users Obsolete. 請改用新的SPRoleDefinitionSPRoleAssignment類別,來定義角色,並將使用者指派給它們。如需詳細資訊,請參閱Changes in the Authorization Object Model。(在Windows SharePoint Services 2.0, Users屬性傳回屬於此角色的使用者的集合和維護回溯相容性。)
Public property Xml Obsolete. 請改用新的SPRoleDefinitionSPRoleAssignment類別,來定義角色,並將使用者指派給它們。如需詳細資訊,請參閱Changes in the Authorization Object Model。(在Windows SharePoint Services 2.0, Xml屬性以 XML 格式傳回角色和維護回溯相容性。)

Top

Methods

  Name Description
Public method AddGroup Obsolete. 請改用新的SPRoleDefinitionSPRoleAssignment類別,來定義角色,並將使用者指派給它們。如需詳細資訊,請參閱Changes in the Authorization Object Model。(在Windows SharePoint Services 2.0, AddGroup方法指定的群組新增至角色和維護回溯相容性。)
Public method AddUser(SPUser) Obsolete. 請改用新的SPRoleDefinitionSPRoleAssignment類別,來定義角色,並將使用者指派給它們。如需詳細資訊,請參閱Changes in the Authorization Object Model。(在Windows SharePoint Services 2.0, AddUser方法指定的使用者加入角色和維護回溯相容性。)
Public method AddUser(String, String, String, String) Obsolete. 請改用新的SPRoleDefinitionSPRoleAssignment類別,來定義角色,並將使用者指派給它們。如需詳細資訊,請參閱Changes in the Authorization Object Model。(在Windows SharePoint Services 2.0, AddUser方法加入使用者名稱所指定的使用者、 電子郵件地址、 顯示名稱及備忘稿的角色和維護回溯相容性。)
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method RemoveGroup Obsolete. 請改用新的SPRoleDefinitionSPRoleAssignment類別,來定義角色,並將使用者指派給它們。如需詳細資訊,請參閱Changes in the Authorization Object Model。(在Windows SharePoint Services 2.0, RemoveGroup方法從角色中移除指定的群組和維護回溯相容性。)
Public method RemoveUser Obsolete. 請改用新的SPRoleDefinitionSPRoleAssignment類別,來定義角色,並將使用者指派給它們。如需詳細資訊,請參閱Changes in the Authorization Object Model。(在Windows SharePoint Services 2.0, RemoveUser方法從角色中移除指定的使用者和維護回溯相容性。)
Public method ToString Obsolete. 請改用新的SPRoleDefinitionSPRoleAssignment類別,來定義角色,並將使用者指派給它們。如需詳細資訊,請參閱Changes in the Authorization Object Model。(在Windows SharePoint Services 2.0, ToString方法傳回的角色名稱和維護回溯相容性。) (Overrides Object.ToString().)
Public method Update Obsolete. 請改用新的SPRoleDefinitionSPRoleAssignment類別,來定義角色,並將使用者指派給它們。如需詳細資訊,請參閱Changes in the Authorization Object Model。(在Windows SharePoint Services 2.0, Update方法更新資料庫角色所做的變更和維護回溯相容性。)

Top

請參閱

參照

SPRole class

Microsoft.SharePoint namespace