Sprache

ReportingService2010.ListParents(String) Methode

Definition

Ruft übergeordnete Elemente für den gegebenen Gegenstand ab.

public:
 cli::array <ReportService2010::CatalogItem ^> ^ ListParents(System::String ^ ItemPath);
[System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/ListParents", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal)]
[System.Web.Services.Protocols.SoapHeader("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapHeader("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
public ReportService2010.CatalogItem[] ListParents(string ItemPath);
[<System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/ListParents", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal)>]
[<System.Web.Services.Protocols.SoapHeader("TrustedUserHeaderValue")>]
[<System.Web.Services.Protocols.SoapHeader("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)>]
member this.ListParents : string -> ReportService2010.CatalogItem[]
Public Function ListParents (ItemPath As String) As CatalogItem()

Parameter

ItemPath
String

Die vollständig qualifizierte URL des Elements, einschließlich Dateinamen und, im SharePoint-Modus, der Erweiterung.

Gibt zurück

Ein Array von CatalogItem Objekten, die die übergeordneten Elemente des jeweiligen Objekts enthalten.

Attribute

Hinweise

Die Methode ListParents liefert eine Liste der übergeordneten Elemente für das gegebene Element zurück. Alle Eltern werden zurückgegeben, bis entweder der Wurzelknoten erreicht ist oder der Benutzer keine Rechte mehr hat, auf einen Elternteil zuzugreifen.

Um die ListParents Methode auszuführen, muss dem Benutzer die Berechtigung "Read Properties" gewährt werden.

Gilt für: