GetPolicies 方法
傳回與 SharePoint 文件庫中特定項目相關聯的原則。
命名空間: ReportService2006
組件: ReportService2006 (在 ReportService2006.dll 中)
語法
'宣告
<SoapHeaderAttribute("TrustedUserHeaderValue")> _
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/GetPolicies", RequestNamespace := "https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices", _
ResponseNamespace := "https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices", _
Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
<SoapHeaderAttribute("ServerInfoHeaderValue", Direction := SoapHeaderDirection.Out)> _
Public Function GetPolicies ( _
Item As String, _
<OutAttribute> ByRef InheritParent As Boolean _
) As Policy()
'用途
Dim instance As ReportingService2006
Dim Item As String
Dim InheritParent As Boolean
Dim returnValue As Policy()
returnValue = instance.GetPolicies(Item, _
InheritParent)
[SoapHeaderAttribute("TrustedUserHeaderValue")]
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/GetPolicies", RequestNamespace = "https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices",
ResponseNamespace = "https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices",
Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
[SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)]
public Policy[] GetPolicies(
string Item,
out bool InheritParent
)
[SoapHeaderAttribute(L"TrustedUserHeaderValue")]
[SoapDocumentMethodAttribute(L"https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/GetPolicies", RequestNamespace = L"https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices",
ResponseNamespace = L"https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices",
Use = SoapBindingUse::Literal, ParameterStyle = SoapParameterStyle::Wrapped)]
[SoapHeaderAttribute(L"ServerInfoHeaderValue", Direction = SoapHeaderDirection::Out)]
public:
array<Policy^>^ GetPolicies(
String^ Item,
[OutAttribute] bool% InheritParent
)
[<SoapHeaderAttribute("TrustedUserHeaderValue")>]
[<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/GetPolicies", RequestNamespace = "https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices",
ResponseNamespace = "https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices",
Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)>]
[<SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)>]
member GetPolicies :
Item:string *
InheritParent:bool byref -> Policy[]
public function GetPolicies(
Item : String,
InheritParent : boolean
) : Policy[]
參數
- Item
型別:System. . :: . .String
項目的完整 URL,包括檔名和副檔名。
- InheritParent
型別:System. . :: . .Boolean%
Boolean 運算式,指出項目是否自其父系繼承原則。
傳回值
型別:array<ReportService2006. . :: . .Policy> [] () [] []
Policy 物件的陣列,其中包含與項目相關聯的使用者及角色。
備註
The table below shows header and permissions information on this operation.
SOAP Headers |
(Out) ServerInfoHeaderValue |
Required Permissions |
EnumeratePermissions()()()() |