共用方式為


SPRole.Users property

NOTE: This API is now obsolete.

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

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

Syntax

'宣告
<ObsoleteAttribute("Use the SPRoleDefinition class instead")> _
Public ReadOnly Property Users As SPUserCollection
    Get
'用途
Dim instance As SPRole
Dim value As SPUserCollection

value = instance.Users
[ObsoleteAttribute("Use the SPRoleDefinition class instead")]
public SPUserCollection Users { get; }

Property value

Type: Microsoft.SharePoint.SPUserCollection
SPUserCollection 物件,表示使用者。

請參閱

參照

SPRole class

SPRole members

Microsoft.SharePoint namespace