Share via


DataSourceDefinition Class

Represents a data source definition.

Inheritance Hierarchy

System.Object
  ReportService2010.DataSourceDefinitionOrReference
    ReportService2010.DataSourceDefinition

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

Syntax

'Declaration
<SerializableAttribute> _
Public Class DataSourceDefinition _
    Inherits DataSourceDefinitionOrReference
'Usage
Dim instance As DataSourceDefinition
[SerializableAttribute]
public class DataSourceDefinition : DataSourceDefinitionOrReference
[SerializableAttribute]
public ref class DataSourceDefinition : public DataSourceDefinitionOrReference
[<SerializableAttribute>]
type DataSourceDefinition =  
    class 
        inherit DataSourceDefinitionOrReference 
    end
public class DataSourceDefinition extends DataSourceDefinitionOrReference

The DataSourceDefinition type exposes the following members.

Constructors

  Name Description
Public method DataSourceDefinition Initializes a new instance of the DataSourceDefinition class.

Top

Properties

  Name Description
Public property ConnectString Gets or sets the connection string for a data source.
Public property CredentialRetrieval Gets or sets a value that indicates the way in which the report server retrieves data source credentials.
Public property Enabled Gets a value that indicates whether a data source is enabled.
Public property EnabledSpecified Gets or sets a value that indicates whether the Enabled property is specified.
Public property Extension Gets or sets the name of the data source extension: SQL, OLEDB, ODBC, or a custom extension.
Public property ImpersonateUser Gets or sets a value that indicates whether the report server tries to impersonate a user by using stored credentials.
Public property ImpersonateUserSpecified Gets or sets a value that indicates whether the ImpersonateUser property is specified.
Public property OriginalConnectStringExpressionBased Gets a value that indicates whether the original connection string for the data source was expression-based.
Public property Password Gets or sets the password that the report server uses to connect to a data source.
Public property Prompt Gets or sets the prompt that the report server displays to the user when it prompts for credentials.
Public property UseOriginalConnectString Gets or sets a value that specifies whether the data source should revert to the original connection string.
Public property UserName Gets or sets the user name the report server uses to connect to a data source.
Public property 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.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

Remarks

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.

Thread Safety

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

See Also

Reference

ReportService2010 Namespace