ReportCredentialsEventArgs.Credentials 屬性

取得 DataSourceCredentials 的集合。

命名空間:  Microsoft.Reporting.WebForms
組件:  Microsoft.ReportViewer.WebForms (在 Microsoft.ReportViewer.WebForms.dll 中)

語法

'宣告
Public ReadOnly Property Credentials As DataSourceCredentialsCollection
public DataSourceCredentialsCollection Credentials { get; }
public:
property DataSourceCredentialsCollection^ Credentials {
    DataSourceCredentialsCollection^ get ();
}
member Credentials : DataSourceCredentialsCollection with get
function get Credentials () : DataSourceCredentialsCollection

屬性值

類型:Microsoft.Reporting.WebForms.DataSourceCredentialsCollection
DataSourceCredentials 物件的集合。

備註

根據預設,這個屬性會包含使用者在認證提示區域中所提供的認證。雖然這個屬性是唯讀的,但是您可以修改集合屬性中的 DataSourceCredentials 物件,然後將認證提交給伺服器 (處理 SubmittingDataSourceCredentials 事件時)。

請參閱

參考

ReportCredentialsEventArgs 類別

Microsoft.Reporting.WebForms 命名空間