ReportingService2006.SetItemDataSources(String, DataSource[]) Metodo

Definizione

Imposta le origini dati per un elemento in una raccolta di SharePoint.

public:
 void SetItemDataSources(System::String ^ Item, cli::array <ReportService2006::DataSource ^> ^ DataSources);
public void SetItemDataSources (string Item, ReportService2006.DataSource[] DataSources);
member this.SetItemDataSources : string * ReportService2006.DataSource[] -> unit
Public Sub SetItemDataSources (Item As String, DataSources As DataSource())

Parametri

Item
String

L'URL completo dell'elemento, inclusi il nome file e l'estensione.

DataSources
DataSource[]

Matrice di oggetti DataSource.

Commenti

Nella tabella seguente vengono mostrate le informazioni sull'intestazione e sulle autorizzazioni relative a questa operazione.

Intestazioni SOAP (In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue
Autorizzazioni necessarie EditListItems in Item e in ViewListItems ogni origine dati o modello in DataSources

Quando il Item tipo è un modello, il valore specificato deve essere un singolo DataSourceReference che non può fare riferimento a un modello o avere le credenziali dell'origine dati impostate su Prompt .

Se in un elemento esistono più origini dati, è possibile che vengano inviate solo le origini dati da modificare.

Quando si associa un file con estensione rsds o odc a un report, l'oggetto DataSourceReference deve contenere l'URL completo con il nome file e l'estensione di file con estensione rsds o odc. Per un oggetto DataSourceReference per un'estensione di file diversa da. rsds o. odc, rsWrongItemType viene restituito l'errore.

Si applica a