ReportingService2010.SetItemReferences(String, ItemReference[]) ReportingService2010.SetItemReferences(String, ItemReference[]) ReportingService2010.SetItemReferences(String, ItemReference[]) Method

定义

设置与项关联的目录项。 Sets the catalog items associated with an item. 此方法适用于ReportDataset项类型。 This method applies to the Report and Dataset item types.

public:
 void SetItemReferences(System::String ^ ItemPath, cli::array <ReportService2010::ItemReference ^> ^ ItemReferences);
[System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetItemReferences", 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 void SetItemReferences (string ItemPath, ReportService2010.ItemReference[] ItemReferences);
Public Sub SetItemReferences (ItemPath As String, ItemReferences As ItemReference())
参数
ItemPath
String String String

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

ItemReferences
ItemReference[]

要设置的项引用。 The item references to set.

注解

下表显示了有关此操作的标头和权限信息。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 the item type is Report or LinkedReport:

-此项引用DataSet:UpdateReportDefinitionItemPathANDReadProperties对数据集- The item reference is a DataSet: UpdateReportDefinition on ItemPath AND ReadProperties on the dataset
-此项引用DataSource:UpdateDatasourceItemPathANDReadProperties对数据源- The item reference is a DataSource: UpdateDatasource on ItemPath AND ReadProperties on the data source
-此项引用Model:UpdateDatasourceItemPathANDReadProperties对模型- The item reference is a Model: UpdateDatasource on ItemPath AND ReadProperties on the model

如果项的类型是DataSet:If the item type is DataSet:

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

项类型是否为Model:UpdateDatasourceItemPathANDReadProperties对数据源If item type is Model: UpdateDatasource on ItemPath AND ReadProperties on the data source
SharePoint 模式所需的权限SharePoint Mode Required Permissions EditListItemsItemPathANDViewListItems中的每个项 ItemReferencesEditListItems on ItemPath AND ViewListItems on each item in ItemReferences

使用此方法以设置对共享数据集的报表的引用、 对共享的数据源的报表的引用和对共享的数据源的共享数据集的引用。Use this method to set a report's references to shared datasets, a report's references to shared data sources, and a shared dataset's references to shared data sources.

适用于