DataSourceDefinition DataSourceDefinition DataSourceDefinition DataSourceDefinition Class


Represents a data source definition.

public ref class DataSourceDefinition : ReportService2010::DataSourceDefinitionOrReference
[System.CodeDom.Compiler.GeneratedCode("wsdl", "2.0.50727.3038")]
public class DataSourceDefinition : ReportService2010.DataSourceDefinitionOrReference
type DataSourceDefinition = class
    inherit DataSourceDefinitionOrReference
Public Class DataSourceDefinition
Inherits DataSourceDefinitionOrReference


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.


DataSourceDefinition() DataSourceDefinition() DataSourceDefinition() DataSourceDefinition()

Initializes a new instance of the DataSourceDefinition class.


ConnectString ConnectString ConnectString ConnectString

Gets or sets the connection string for a data source.

CredentialRetrieval CredentialRetrieval CredentialRetrieval CredentialRetrieval

Gets or sets a value that indicates the way in which the report server retrieves data source credentials.

Enabled Enabled Enabled Enabled

Gets a value that indicates whether a data source is enabled.

EnabledSpecified EnabledSpecified EnabledSpecified EnabledSpecified

Gets or sets a value that indicates whether the Enabled property is specified.

Extension Extension Extension Extension

Gets or sets the name of the data source extension: SQL, OLEDB, ODBC, or a custom extension.

ImpersonateUser ImpersonateUser ImpersonateUser ImpersonateUser

Gets or sets a value that indicates whether the report server tries to impersonate a user by using stored credentials.

ImpersonateUserSpecified ImpersonateUserSpecified ImpersonateUserSpecified ImpersonateUserSpecified

Gets or sets a value that indicates whether the ImpersonateUser property is specified.

OriginalConnectStringExpressionBased OriginalConnectStringExpressionBased OriginalConnectStringExpressionBased OriginalConnectStringExpressionBased

Gets a value that indicates whether the original connection string for the data source was expression-based.

Password Password Password Password

Gets or sets the password that the report server uses to connect to a data source.

Prompt Prompt Prompt Prompt

Gets or sets the prompt that the report server displays to the user when it prompts for credentials.

UseOriginalConnectString UseOriginalConnectString UseOriginalConnectString UseOriginalConnectString

Gets or sets a value that specifies whether the data source should revert to the original connection string.

UserName UserName UserName UserName

Gets or sets the user name the report server uses to connect to a data source.

WindowsCredentials WindowsCredentials WindowsCredentials 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.

Applies to