共用方式為


DataSourceDefinition 類別

Represents a data source definition.

繼承階層

System.Object
  ReportService2010.DataSourceDefinitionOrReference
    ReportService2010.DataSourceDefinition

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

語法

'宣告
<SerializableAttribute> _
Public Class DataSourceDefinition _
    Inherits DataSourceDefinitionOrReference
'用途
Dim instance As DataSourceDefinition
[SerializableAttribute]
public class DataSourceDefinition : DataSourceDefinitionOrReference
[SerializableAttribute]
public ref class DataSourceDefinition : public DataSourceDefinitionOrReference
[<SerializableAttribute>]
type DataSourceDefinition =  
    class 
        inherit DataSourceDefinitionOrReference 
    end
public class DataSourceDefinition extends DataSourceDefinitionOrReference

DataSourceDefinition 型別公開下列成員。

建構函式

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

上層

屬性

  名稱 說明
公用屬性 ConnectString Gets or sets the connection string for a data source.
公用屬性 CredentialRetrieval Gets or sets a value that indicates the way in which the report server retrieves data source credentials.
公用屬性 Enabled Gets a value that indicates whether a data source is enabled.
公用屬性 EnabledSpecified Gets or sets a value that indicates whether the Enabled property is specified.
公用屬性 Extension Gets or sets the name of the data source extension: SQL, OLEDB, ODBC, or a custom extension.
公用屬性 ImpersonateUser Gets or sets a value that indicates whether the report server tries to impersonate a user by using stored credentials.
公用屬性 ImpersonateUserSpecified Gets or sets a value that indicates whether the ImpersonateUser property is specified.
公用屬性 OriginalConnectStringExpressionBased Gets a value that indicates whether the original connection string for the data source was expression-based.
公用屬性 Password Gets or sets the password that the report server uses to connect to a data source.
公用屬性 Prompt Gets or sets the prompt that the report server displays to the user when it prompts for credentials.
公用屬性 UseOriginalConnectString Gets or sets a value that specifies whether the data source should revert to the original connection string.
公用屬性 UserName Gets or sets the user name the report server uses to connect to a data source.
公用屬性 WindowsCredentials Gets or sets a value that indicates whether the report server passes user-provided or stored credentials as Windows credentials when it connects to a data source.

上層

方法

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

上層

備註

Use the DataSourceDefinition class together with the Item property of the DataSource class.

A DataSourceDefinition object is returned as output by the GetDataSourceContents method and is passed as input to the CreateDataSource and SetDataSourceContents methods.

The DataSourceDefinition class is used for both embedded and shared data sources.

執行緒安全性

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

請參閱

參考

ReportService2010 命名空間