共用方式為


DataSource.Credentials 屬性

此 API 支援 SQL Server 2012 基礎結構,但無法直接從您的程式碼使用。

Gets or sets the data source credentials.

命名空間:  Microsoft.ReportingServices.RdlObjectModel
組件:  Microsoft.ReportingServices.Designer.Controls (在 Microsoft.ReportingServices.Designer.Controls.dll 中)

語法

'宣告
Public Property Credentials As DataSourceCredentials 
    Get 
    Set
'用途
Dim instance As DataSource 
Dim value As DataSourceCredentials 

value = instance.Credentials

instance.Credentials = value
public DataSourceCredentials Credentials { get; set; }
public:
property DataSourceCredentials^ Credentials {
    DataSourceCredentials^ get ();
    void set (DataSourceCredentials^ value);
}
member Credentials : DataSourceCredentials with get, set
function get Credentials () : DataSourceCredentials 
function set Credentials (value : DataSourceCredentials)

屬性值

型別:Microsoft.ReportingServices.RdlObjectModel.DataSourceCredentials
A DataSourceCredentials object.

請參閱

參考

DataSource 類別

Microsoft.ReportingServices.RdlObjectModel 命名空間