DataSourceDefinition Class

Represents a data source definition in the Report Server database.

Namespace:  ReportService2005
Assembly:  ReportService2005 (in ReportService2005.dll)

public class DataSourceDefinition : DataSourceDefinitionOrReference

The DataSourceDefinition type exposes the following members.

Public methodDataSourceDefinitionInitializes a new instance of the DataSourceDefinition class.

Public propertyConnectStringGets or sets the connection string for a data source.
Public propertyCredentialRetrievalIndicates the way in which the Report Server retrieves data source credentials.
Public propertyEnabledIndicates whether a data source is enabled.
Public propertyEnabledSpecifiedGets or sets a value that indicates whether the Enabled property is specified.
Public propertyExtensionGets or sets the name of the data source extension: SQL, OLEDB, ODBC, or a custom extension.
Public propertyImpersonateUserIndicates 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.
Public propertyImpersonateUserSpecifiedGets or sets a value that indicates whether the ImpersonateUser property is specified.
Public propertyOriginalConnectStringExpressionBasedIndicates whether the original connection string for the data source was expression-based. Read-only.
Public propertyPasswordGets or sets the password that the report server uses to connect to a data source.
Public propertyPromptGets or sets the prompt that the report server displays to the user when prompting for credentials.
Public propertyUseOriginalConnectStringSpecifies whether the data source should revert to the original connection string.
Public propertyUserNameGets or sets the user name that the report server uses to connect to a data source.
Public propertyWindowsCredentialsIndicates whether the Report Server passes user-provided or stored credentials as Windows credentials when connecting to a data source.

Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from 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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions