ReportingService2005.SetItemDataSources 메서드

Sets the data sources for an item in the catalog.

네임스페이스:  ReportService2005
어셈블리:  ReportService2005(ReportService2005.dll)

public void SetItemDataSources(
	string Item,
	DataSource[] DataSources
)

매개 변수

Item
유형: System.String
The full name of the item for which to set the data sources. Accepts an EditSessionID generated by the CreateReportEditSession(String, String, Byte) method.
DataSources
유형: ReportService2005.DataSource[]
An array of DataSource objects.

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

SOAP Headers

(In) BatchHeaderValue

(Out) ServerInfoHeaderValue

Required Permissions

Depends on the item type of Item:

SetItemDataSources returns an error when data source properties are set on a linked report item type.

An rsDataSourceNotFound error is returned if a data source that is not associated with the item is passed into the method.

When the Item type is a model, the specified value must be a single DataSourceReference. In this situation, if you supply an array of DataSource objects, an error is returned.

When the type of Item specified is a model, the DataSourceReference specified cannot reference a model or have data source credentials set to Prompt.

If multiple data sources exist on an item, only those data sources that are being changed may be submitted.

커뮤니티 추가 항목

추가
표시: