ServerReport.SetDataSourceCredentials 方法
設定報表的資料來源認證。
命名空間: Microsoft.Reporting.WinForms
組件: Microsoft.ReportViewer.WinForms (在 Microsoft.ReportViewer.WinForms.dll 中)
語法
'宣告
Public Sub SetDataSourceCredentials ( _
credentials As IEnumerable(Of DataSourceCredentials) _
)
public void SetDataSourceCredentials(
IEnumerable<DataSourceCredentials> credentials
)
public:
void SetDataSourceCredentials(
IEnumerable<DataSourceCredentials^>^ credentials
)
member SetDataSourceCredentials :
credentials:IEnumerable<DataSourceCredentials> -> unit
public function SetDataSourceCredentials(
credentials : IEnumerable<DataSourceCredentials>
)
參數
- credentials
類型:IEnumerable<DataSourceCredentials>
要提交給報表伺服器的一組資料來源認證。