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

Definition

Sets the catalog items associated with an item. 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())
Parameters
ItemPath
String String String

The fully qualified URL of the item including the file name and, in SharePoint mode, the extension.

ItemReferences
ItemReference[]

The item references to set.

Remarks

The table below shows header and permissions information on this operation.

SOAP Header Usage (In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue
Native Mode Required Permissions If the item type is Report or LinkedReport:

- The item reference is a DataSet: UpdateReportDefinition on ItemPath AND ReadProperties on the dataset
- The item reference is a DataSource: UpdateDatasource on ItemPath AND ReadProperties on the data source
- The item reference is a Model: UpdateDatasource on ItemPath AND ReadProperties on the model

If the item type is DataSet:

- The item reference is a DataSource: UpdateDatasource on ItemPath AND ReadProperties on the data source
- The item reference is a Model: UpdateDatasource on ItemPath AND ReadProperties on the model

If item type is Model: UpdateDatasource on ItemPath AND ReadProperties on the data source
SharePoint Mode Required Permissions <xref:Microsoft.SharePoint.SPBasePermissions.EditListItems> on ItemPath AND <xref:Microsoft.SharePoint.SPBasePermissions.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.

Applies to