DataSourceDefinition Class

Represents a data source definition in SharePoint library.

Namespace:  ReportService2006
Assembly:  ReportService2006 (in ReportService2006.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 propertyCredentialRetrievalGets or sets a value that indicates the way in which the report server retrieves data source credentials.
Public propertyEnabledGets a value that indicates 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 propertyImpersonateUserGets or sets a value that indicates whether the report server tries to impersonate a user by using stored credentials.
Public propertyImpersonateUserSpecifiedGets or sets a value that indicates whether the ImpersonateUser property is specified.
Public propertyOriginalConnectStringExpressionBasedGets a value that indicates whether the original connection string for the data source was expression-based.
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 it prompts for credentials.
Public propertyUseOriginalConnectStringGets or sets a value that specifies whether the data source should revert to the original connection string.
Public propertyUserNameGets or sets the user name the report server uses to connect to a data source.
Public propertyWindowsCredentialsGets 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.

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

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