ReportingService2010.ListParents(String) ReportingService2010.ListParents(String) ReportingService2010.ListParents(String) Method

定义

检索给定项的父项。 Retrieves parent items for the given item.

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);
Public Function ListParents (ItemPath As String) As CatalogItem()
参数
ItemPath
String String String

项的完全限定 URL,其中包括文件名(在 SharePoint 模式下,还有扩展名)。 The fully qualified URL of the item including the file name and, in SharePoint mode, the extension.

返回

数组CatalogItem包含给定项的父项的对象。 An array of CatalogItem objects that contain the parent items for the given item.

注解

ListParents方法返回给定项的父项的列表。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 rights to access a parent.

若要执行ListParents方法,用户必须被授予"读取属性"权限。To execute the ListParents method, the user must be granted the "Read Properties" permission.

适用于