DataSourceDefinition Class

Definition

表示数据源定义。Represents a data source definition.

public ref class DataSourceDefinition : ReportService2010::DataSourceDefinitionOrReference
[System.CodeDom.Compiler.GeneratedCode("wsdl", "2.0.50727.3038")]
[System.ComponentModel.DesignerCategory("code")]
[System.Diagnostics.DebuggerStepThrough]
[System.Xml.Serialization.XmlType(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
[System.Serializable]
public class DataSourceDefinition : ReportService2010.DataSourceDefinitionOrReference
type DataSourceDefinition = class
    inherit DataSourceDefinitionOrReference
Public Class DataSourceDefinition
Inherits DataSourceDefinitionOrReference
Inheritance
Attributes

Remarks

DataSourceDefinition 类与类的属性一起使用 Item DataSourceUse the DataSourceDefinition class together with the Item property of the DataSource class.

DataSourceDefinition对象作为方法的输出返回 GetDataSourceContents ,并作为输入传递给 CreateDataSourceSetDataSourceContents 方法。A DataSourceDefinition object is returned as output by the GetDataSourceContents method and is passed as input to the CreateDataSource and SetDataSourceContents methods.

DataSourceDefinition类用于嵌入数据源和共享数据源。The DataSourceDefinition class is used for both embedded and shared data sources.

Constructors

DataSourceDefinition()

初始化 DataSourceDefinition 类的新实例。Initializes a new instance of the DataSourceDefinition class.

Properties

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

获取或设置一个值,该值指示是否指定 Enabled 属性。Gets or sets a value that indicates whether the Enabled property is specified.

Extension

获取或设置数据源扩展的名称:SQL、OLEDB、ODBC 或自定义扩展。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

获取或设置一个值,该值指示是否指定 ImpersonateUser 属性。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

获取或设置 Report Server 用于连接到数据源的用户名。Gets or sets the user name the report server uses to connect to a data source.

WindowsCredentials

获取或设置一个值,该值指示报表服务器在连接到数据源时,是否将用户提供的凭据或存储的凭据作为 Windows 凭据传递。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.

Applies to