다음을 통해 공유


GetPolicies 메서드

Returns the policies that are associated with a particular item in a SharePoint library.

네임스페이스:  ReportService2006
어셈블리:  ReportService2006.dll의 ReportService2006

구문

‘선언
<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
    The fully qualified URL of the item including the file name and extension.
  • InheritParent
    형식: System. . :: . .Boolean%
    A Boolean expression that indicates whether the item inherits policies from its parent.

반환 값

형식: array<ReportService2006. . :: . .Policy> [] () [] []
An array of Policy objects that contains the users and roles associated with the item.