共用方式為


ReportingService2005.SetItemDataSources 方法

Sets the data sources for an item in the catalog.

命名空間:  ReportService2005
組件:  ReportService2005 (在 ReportService2005.dll 中)

語法

'宣告
Public Sub SetItemDataSources ( _
    Item As String, _
    DataSources As DataSource() _
)
'用途
Dim instance As ReportingService2005 
Dim Item As String 
Dim DataSources As DataSource()

instance.SetItemDataSources(Item, DataSources)
public void SetItemDataSources(
    string Item,
    DataSource[] DataSources
)
public:
void SetItemDataSources(
    String^ Item, 
    array<DataSource^>^ DataSources
)
member SetItemDataSources : 
        Item:string * 
        DataSources:DataSource[] -> unit
public function SetItemDataSources(
    Item : String, 
    DataSources : DataSource[]
)

參數

備註

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.

請參閱

參考

ReportingService2005 類別

ReportService2005 命名空間