GetPolicies 메서드
보고서 서버 데이터베이스 또는 SharePoint 라이브러리의 특정 항목과 연결된 정책을 반환합니다.
네임스페이스: ReportService2010
어셈블리: ReportService2010(ReportService2010.dll)
구문
‘선언
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetPolicies", 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("TrustedUserHeaderValue")> _
<SoapHeaderAttribute("ServerInfoHeaderValue", Direction := SoapHeaderDirection.Out)> _
Public Function GetPolicies ( _
ItemPath As String, _
<OutAttribute> ByRef InheritParent As Boolean _
) As Policy()
‘사용 방법
Dim instance As ReportingService2010
Dim ItemPath As String
Dim InheritParent As Boolean
Dim returnValue As Policy()
returnValue = instance.GetPolicies(ItemPath, _
InheritParent)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetPolicies", 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("TrustedUserHeaderValue")]
[SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)]
public Policy[] GetPolicies(
string ItemPath,
out bool InheritParent
)
[SoapDocumentMethodAttribute(L"https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetPolicies", 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"TrustedUserHeaderValue")]
[SoapHeaderAttribute(L"ServerInfoHeaderValue", Direction = SoapHeaderDirection::Out)]
public:
array<Policy^>^ GetPolicies(
String^ ItemPath,
[OutAttribute] bool% InheritParent
)
[<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetPolicies", 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("TrustedUserHeaderValue")>]
[<SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)>]
member GetPolicies :
ItemPath:string *
InheritParent:bool byref -> Policy[]
public function GetPolicies(
ItemPath : String,
InheritParent : boolean
) : Policy[]
매개 변수
- ItemPath
유형: System. . :: . .String
파일 이름과 SharePoint 모드에서는 확장명을 포함하는 항목의 정규화된 URL입니다.
- InheritParent
유형: System. . :: . .Boolean%
항목이 부모로부터 정책을 상속했는지 여부를 나타내는 Boolean 식입니다.
반환 값
유형: array<ReportService2010. . :: . .Policy> [] () [] []
항목에 연결된 사용자와 역할을 포함하는 Policy 개체의 배열입니다.
주의
The table below shows header and permissions information on this operation.
SOAP Header Usage |
(Out) ServerInfoHeaderValue |
Native Mode Required Permissions |
Depends on the item type:
|
SharePoint Mode Required Permissions |
EnumeratePermissions()()()() |