DataSourceDefinition 类

Represents a data source definition.

命名空间:  ReportService2010
程序集:  ReportService2010(在 ReportService2010.dll 中)

[SerializableAttribute]
public class DataSourceDefinition : DataSourceDefinitionOrReference

DataSourceDefinition 类型公开以下成员。

  名称说明
公共方法DataSourceDefinitionInitializes a new instance of the DataSourceDefinition class.
页首

  名称说明
公共属性ConnectStringGets or sets the connection string for a data source.
公共属性CredentialRetrievalGets or sets a value that indicates the way in which the report server retrieves data source credentials.
公共属性EnabledGets a value that indicates whether a data source is enabled.
公共属性EnabledSpecifiedGets or sets a value that indicates whether the Enabled property is specified.
公共属性ExtensionGets or sets the name of the data source extension: SQL, OLEDB, ODBC, or a custom extension.
公共属性ImpersonateUserGets or sets a value that indicates whether the report server tries to impersonate a user by using stored credentials.
公共属性ImpersonateUserSpecifiedGets or sets a value that indicates whether the ImpersonateUser property is specified.
公共属性OriginalConnectStringExpressionBasedGets a value that indicates whether the original connection string for the data source was expression-based.
公共属性PasswordGets or sets the password that the report server uses to connect to a data source.
公共属性PromptGets or sets the prompt that the report server displays to the user when it prompts for credentials.
公共属性UseOriginalConnectStringGets or sets a value that specifies whether the data source should revert to the original connection string.
公共属性UserNameGets or sets the user name the report server uses to connect to a data source.
公共属性WindowsCredentialsGets 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) 成员都是线程安全的。不保证所有实例成员都是线程安全的。

社区附加资源

添加
显示: