DataSourceDefinition 类

Represents a data source definition in the Report Server database.

继承层次结构

System. . :: . .Object
  ReportService2005. . :: . .DataSourceDefinitionOrReference
    ReportService2005..::..DataSourceDefinition

命名空间:  ReportService2005
程序集:  ReportService2005(在 ReportService2005.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 Indicates the way in which the Report Server retrieves data source credentials.
公共属性 Enabled 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 Indicates whether the report server attempts to impersonate a user by using stored credentials after a data processing extension has established an authenticated connection to a data source.
公共属性 ImpersonateUserSpecified Gets or sets a value that indicates whether the ImpersonateUser property is specified.
公共属性 OriginalConnectStringExpressionBased Indicates whether the original connection string for the data source was expression-based. Read-only.
公共属性 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 prompting for credentials.
公共属性 UseOriginalConnectString Specifies whether the data source should revert to the original connection string.
公共属性 UserName Gets or sets the user name that the report server uses to connect to a data source.
公共属性 WindowsCredentials Indicates whether the Report Server passes user-provided or stored credentials as Windows credentials when connecting to a data source.

页首

方法

  名称 说明
公共方法 Equals (从 Object 继承。)
受保护方法 Finalize (从 Object 继承。)
公共方法 GetHashCode (从 Object 继承。)
公共方法 GetType (从 Object 继承。)
受保护方法 MemberwiseClone (从 Object 继承。)
公共方法 ToString (从 Object 继承。)

页首

注释

Use the DataSourceDefinition class 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) 成员都是线程安全的。不保证所有实例成员都是线程安全的。