ServerReport.SetDataSourceCredentials 方法
设置报表的数据源凭据。
命名空间: Microsoft.Reporting.WebForms
程序集: Microsoft.ReportViewer.WebForms(在 Microsoft.ReportViewer.WebForms.dll 中)
语法
声明
Public Sub SetDataSourceCredentials ( _
credentials As IEnumerable(Of DataSourceCredentials) _
)
用法
Dim instance As ServerReport
Dim credentials As IEnumerable(Of DataSourceCredentials)
instance.SetDataSourceCredentials(credentials)
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
类型:System.Collections.Generic.IEnumerable<DataSourceCredentials>
要提交给报表服务器的一组数据源凭据。