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>
)

参数

请参阅

参考

ServerReport 类

Microsoft.Reporting.WebForms 命名空间