Поделиться через


Метод ListParents

Находит родительские элементы для данного элемента.

Пространство имен:  ReportService2006
Сборка:  ReportService2006 (в ReportService2006.dll)

Синтаксис

'Декларация
<SoapHeaderAttribute("TrustedUserHeaderValue")> _
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/ListParents", 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)> _
Public Function ListParents ( _
    Item As String _
) As CatalogItem()
'Применение
Dim instance As ReportingService2006
Dim Item As String
Dim returnValue As CatalogItem()

returnValue = instance.ListParents(Item)
[SoapHeaderAttribute("TrustedUserHeaderValue")]
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/ListParents", 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)]
public CatalogItem[] ListParents(
    string Item
)
[SoapHeaderAttribute(L"TrustedUserHeaderValue")]
[SoapDocumentMethodAttribute(L"https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/ListParents", 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)]
public:
array<CatalogItem^>^ ListParents(
    String^ Item
)
[<SoapHeaderAttribute("TrustedUserHeaderValue")>]
[<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/ListParents", 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)>]
member ListParents : 
        Item:string -> CatalogItem[] 
public function ListParents(
    Item : String
) : CatalogItem[]

Параметры

  • Item
    Тип: System. . :: . .String
    Полный URL-адрес элемента, включая имя файла и расширение.

Возвращаемое значение

Тип: array<ReportService2006. . :: . .CatalogItem> [] () [] []
Массив объектов CatalogItem, содержащих родительские элементы для заданного элемента.

Замечания

The table below shows header and permissions information on this operation.

SOAP Headers

(In) TrustedUserHeaderValue

Required Permissions

None

The ListParents method returns a list of parent items for the given item. All parents are returned until either the root node is reached or the user does not have the ManageAlerts()()()() permission for a parent. If you do not have the ViewListItems()()()() permission for the item, this method returns an empty list.