ReportExecutionService.SetExecutionCredentials 方法

定義

設定與目前報告執行相關的憑證。

public:
 ReportExecution2005::ExecutionInfo ^ SetExecutionCredentials(cli::array <ReportExecution2005::DataSourceCredentials ^> ^ Credentials);
public ReportExecution2005.ExecutionInfo SetExecutionCredentials(ReportExecution2005.DataSourceCredentials[] Credentials);
member this.SetExecutionCredentials : ReportExecution2005.DataSourceCredentials[] -> ReportExecution2005.ExecutionInfo
Public Function SetExecutionCredentials (Credentials As DataSourceCredentials()) As ExecutionInfo

參數

Credentials
DataSourceCredentials[]

DataSourceCredentials 組成的陣列。

傳回

一個 ExecutionInfo 包含新執行的物件。

備註

下表顯示此操作的標頭與權限資訊。

SOAP 標頭的使用 (在) TrustedUserHeaderValue

(在) ExecutionHeaderValue

(出局) ServerInfoHeaderValue
原生模式所需權限 關於主報告及所有子報告: ReadProperties 以及 ExecuteAndView
SharePoint 模式 必要權限 關於主報告及所有子報告: <xref:Microsoft.SharePoint.SPBasePermissions.ViewListItems>

如果在設定憑證時有快照,且 AllowQueryExecutionfalse,快照會被清除,所有參數也會被重置為預設值。

如果有多個資料來源會要求相同的報告,你需要同時指定所有憑證。 如果必須更改一組憑證,你必須重新提供所有憑證。

憑證只會在執行期間持續存在,之後必須再次指定。

適用於