GetRoleProperties 方法
返回角色信息和关联任务的集合。
命名空间: ReportService2010
程序集: ReportService2010(在 ReportService2010.dll 中)
语法
声明
<SoapHeaderAttribute("TrustedUserHeaderValue")> _
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetRoleProperties", RequestNamespace := "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", _
ResponseNamespace := "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", _
Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
<SoapHeaderAttribute("ServerInfoHeaderValue", Direction := SoapHeaderDirection.Out)> _
Public Function GetRoleProperties ( _
Name As String, _
SiteUrl As String, _
<OutAttribute> ByRef Description As String _
) As String()
用法
Dim instance As ReportingService2010
Dim Name As String
Dim SiteUrl As String
Dim Description As String
Dim returnValue As String()
returnValue = instance.GetRoleProperties(Name, _
SiteUrl, Description)
[SoapHeaderAttribute("TrustedUserHeaderValue")]
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetRoleProperties", RequestNamespace = "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer",
ResponseNamespace = "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer",
Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
[SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)]
public string[] GetRoleProperties(
string Name,
string SiteUrl,
out string Description
)
[SoapHeaderAttribute(L"TrustedUserHeaderValue")]
[SoapDocumentMethodAttribute(L"https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetRoleProperties", RequestNamespace = L"https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer",
ResponseNamespace = L"https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer",
Use = SoapBindingUse::Literal, ParameterStyle = SoapParameterStyle::Wrapped)]
[SoapHeaderAttribute(L"ServerInfoHeaderValue", Direction = SoapHeaderDirection::Out)]
public:
array<String^>^ GetRoleProperties(
String^ Name,
String^ SiteUrl,
[OutAttribute] String^% Description
)
[<SoapHeaderAttribute("TrustedUserHeaderValue")>]
[<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetRoleProperties", RequestNamespace = "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer",
ResponseNamespace = "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer",
Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)>]
[<SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)>]
member GetRoleProperties :
Name:string *
SiteUrl:string *
Description:string byref -> string[]
public function GetRoleProperties(
Name : String,
SiteUrl : String,
Description : String
) : String[]
参数
- Name
类型:System. . :: . .String
角色的名称。
- SiteUrl
类型:System. . :: . .String
SharePoint 站点的完全限定 URL。
在本机模式下调用此方法时,将此参数设置为 nullNothingnullptrunitnull 引用(在 Visual Basic 中为 Nothing)(在 Visual Basic 中为 Nothing)。
- Description
类型:System. . :: . .String%
[out] 角色的说明。
返回值
类型:array<System. . :: . .String> [] () [] []
一个表示角色信息的数组 String。
注释
The table below shows header and permissions information on this operation.
SOAP Header Usage |
(Out) ServerInfoHeaderValue |
Native Mode Required Permissions |
ReadRoleProperties (System) |
SharePoint Mode Required Permissions |
ManagePermissions()()()() |
This method throws an rsUnsupportedParameterForModeException exception if a non-null value is specified for the SiteUrl parameter in Native mode.