ReportingService2006.ListRoles(SecurityScopeEnum, String) 方法

定义

返回给定 SharePoint 网站的角色的名称和说明。

public:
 cli::array <ReportService2006::Role ^> ^ ListRoles(ReportService2006::SecurityScopeEnum SecurityScope, System::String ^ Path);
public ReportService2006.Role[] ListRoles (ReportService2006.SecurityScopeEnum SecurityScope, string Path);
member this.ListRoles : ReportService2006.SecurityScopeEnum * string -> ReportService2006.Role[]
Public Function ListRoles (SecurityScope As SecurityScopeEnum, Path As String) As Role()

参数

SecurityScope
SecurityScopeEnum

一个SecurityScopeEnum值,该值指定要返回的项的安全范围。

Path
String

SharePoint 站点的完全限定 URL。

返回

Role[]

下表显示了有关此操作的标头和权限信息。

**SOAP 标头** (In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue

所需的权限

一个 Role 对象的数组,该数组包含针对给定站点的角色的信息,按提供的 SecurityScopeEnum 值进行筛选。

适用于