共用方式為


SPRole.AddUser method

Include protected members
Include inherited members

NOTE: This API is now obsolete.

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

Overload list

  Name Description
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方法加入使用者名稱所指定的使用者、 電子郵件地址、 顯示名稱及備忘稿的角色和維護回溯相容性。)

Top

請參閱

參照

SPRole class

SPRole members

Microsoft.SharePoint namespace