ReportingService2010.GetItemReferences(String, String) ReportingService2010.GetItemReferences(String, String) ReportingService2010.GetItemReferences(String, String) Method

定义

返回与项关联的目录项引用的列表。 Returns a list of catalog item references associated with an item. 此方法适用于ReportDataset项类型。 This method applies to the Report and Dataset item types.

public:
 cli::array <ReportService2010::ItemReferenceData ^> ^ GetItemReferences(System::String ^ ItemPath, System::String ^ ReferenceItemType);
[System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetItemReferences", 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("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeader("TrustedUserHeaderValue")]
public ReportService2010.ItemReferenceData[] GetItemReferences (string ItemPath, string ReferenceItemType);
Public Function GetItemReferences (ItemPath As String, ReferenceItemType As String) As ItemReferenceData()
参数
ItemPath
String String String

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

ReferenceItemType
String String String

被引用项的项类型。 The item type of the referenced item.

返回

数组ItemReferenceData对象。 An array of ItemReferenceData objects.

注解

下表显示了有关此操作的标头和权限信息。The table below shows header and permissions information on this operation.

SOAP 标头使用情况SOAP Header Usage (In) TrustedUserHeaderValue(In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue(Out) ServerInfoHeaderValue
纯模式所需的权限Native Mode Required Permissions 项类型是否为ReportLinkedReport:If item type is Report or LinkedReport:

- ReferenceItemTypeDataSet:ReadReportDefinitionItemPathANDReadProperties上每个数据集- ReferenceItemType is DataSet: ReadReportDefinition on ItemPath AND ReadProperties on each dataset
- ReferenceItemTypeDataSource:ReadDatasourceItemPathANDReadProperties上每个数据源 ANDReadProperties上每个模型- ReferenceItemType is DataSource: ReadDatasource on ItemPath AND ReadProperties on each data source AND ReadProperties on each model

项类型是否为DataSet:If item type is DataSet:

-此项引用DataSource:ReadDatasourceItemPathANDReadProperties对数据源- The item reference is a DataSource: ReadDatasource on ItemPath AND ReadProperties on the data source
-此项引用Model:ReadDatasourceItemPathReadProperties对模型- The item reference is a Model: ReadDatasource on ItemPathReadProperties on the model

项类型是否为Model:ReadDatasourceItemPathANDReadProperties上引用的数据源。If item type is Model: ReadDatasource on ItemPath AND ReadProperties on the referenced data source.
SharePoint 模式所需的权限SharePoint Mode Required Permissions OpenItemsItemPathANDViewListItems引用的每个项OpenItems on ItemPath AND ViewListItems on each referenced item

使用此方法来获取报表的共享数据集、 报表的共享的数据源或共享数据集的共享的数据源。Use this method to get a report's shared datasets, a report's shared data sources, or a shared dataset's shared data sources.

适用于