共用方式為


DataSourceCredentials 類別

Represents data source credentials.

繼承階層

System.Object
  ReportExecution2005.DataSourceCredentials

命名空間:  ReportExecution2005
組件:  ReportExecution2005 (在 ReportExecution2005.dll 中)

語法

'宣告
Public Class DataSourceCredentials
'用途
Dim instance As DataSourceCredentials
public class DataSourceCredentials
public ref class DataSourceCredentials
type DataSourceCredentials =  class end
public class DataSourceCredentials

DataSourceCredentials 型別公開下列成員。

建構函式

  名稱 說明
公用方法 DataSourceCredentials Initializes a new instance of the DataSourceCredentials class.

上層

屬性

  名稱 說明
公用屬性 DataSourceName Gets or sets the name of the data source to which to pass credentials. String.
公用屬性 Password Gets or sets the password that the report server uses to connect to an external data source.
公用屬性 UserName Gets or sets the user name that the report server uses to connect to an external data source.

上層

方法

  名稱 說明
公用方法 Equals (繼承自 Object。)
受保護的方法 Finalize (繼承自 Object。)
公用方法 GetHashCode (繼承自 Object。)
公用方法 GetType (繼承自 Object。)
受保護的方法 MemberwiseClone (繼承自 Object。)
公用方法 ToString (繼承自 Object。)

上層

備註

Use the DataSourceCredentials class with the SetExecutionCredentials or SetExecutionCredentials2 method to pass credentials to an external data source.

執行緒安全性

這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。

請參閱

參考

ReportExecution2005 命名空間