ReportingService2006.ListParents(String) Method

Definition

Retrieves parent items for the given item.

public:
 cli::array <ReportService2006::CatalogItem ^> ^ ListParents(System::String ^ Item);
public ReportService2006.CatalogItem[] ListParents (string Item);
member this.ListParents : string -> ReportService2006.CatalogItem[]
Public Function ListParents (Item As String) As CatalogItem()

Parameters

Item
String

The fully qualified URL of the item including the file name and extension.

Returns

An array of CatalogItem objects that contain the parent items for the given item.

Remarks

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 <xref:Microsoft.SharePoint.SPBasePermissions.ManageAlerts> permission for a parent. If you do not have the <xref:Microsoft.SharePoint.SPBasePermissions.ViewListItems> permission for the item, this method returns an empty list.

Applies to