GetModelItemPolicies 方法
擷取與模型階層中之項目相關聯的原則。
命名空間: ReportService2006
組件: ReportService2006 (在 ReportService2006.dll 中)
語法
'宣告
<SoapHeaderAttribute("ServerInfoHeaderValue", Direction := SoapHeaderDirection.Out)> _
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/GetModelItemPolicies", 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("TrustedUserHeaderValue")> _
Public Function GetModelItemPolicies ( _
Model As String, _
ModelItemID As String, _
<OutAttribute> ByRef InheritParent As Boolean _
) As Policy()
'用途
Dim instance As ReportingService2006
Dim Model As String
Dim ModelItemID As String
Dim InheritParent As Boolean
Dim returnValue As Policy()
returnValue = instance.GetModelItemPolicies(Model, _
ModelItemID, InheritParent)
[SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)]
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/GetModelItemPolicies", 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("TrustedUserHeaderValue")]
public Policy[] GetModelItemPolicies(
string Model,
string ModelItemID,
out bool InheritParent
)
[SoapHeaderAttribute(L"ServerInfoHeaderValue", Direction = SoapHeaderDirection::Out)]
[SoapDocumentMethodAttribute(L"https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/GetModelItemPolicies", 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"TrustedUserHeaderValue")]
public:
array<Policy^>^ GetModelItemPolicies(
String^ Model,
String^ ModelItemID,
[OutAttribute] bool% InheritParent
)
[<SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)>]
[<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/GetModelItemPolicies", 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("TrustedUserHeaderValue")>]
member GetModelItemPolicies :
Model:string *
ModelItemID:string *
InheritParent:bool byref -> Policy[]
public function GetModelItemPolicies(
Model : String,
ModelItemID : String,
InheritParent : boolean
) : Policy[]
參數
- Model
型別:System. . :: . .String
模型的完整 URL,包括檔名和副檔名 .smdl。
- ModelItemID
型別:System. . :: . .String
模型中項目的識別碼。如果省略,就會傳回模型根的權限。
- InheritParent
型別:System. . :: . .Boolean%
指出原則是否繼承自項目的父系。
傳回值
型別:array<ReportService2006. . :: . .Policy> [] () [] []
Policy 物件的陣列,描述與目錄中項目相關聯的群組及其角色。
備註
The table below shows header and permissions information on this operation.
SOAP Headers |
(Out) ServerInfoHeaderValue |
Required Permissions |
EnumeratePermissions()()()() |