Initializes a new instance of the DataSource class, assigning the data source type and connection string.

Namespace:  C1.C1Preview.DataBinding
Assembly:  C1.C1Report.2 (in C1.C1Report.2.dll)

Syntax

C#
public DataSource(
	DataProviderEnum dataProvider,
	string connectString
)
Visual Basic
Public Sub New ( _
	dataProvider As DataProviderEnum, _
	connectString As String _
)

Parameters

dataProvider
Type: C1.C1Preview.DataBinding..::..DataProviderEnum
A DataProviderEnum specifying the type of this data source.
connectString
Type: System..::..String
The data source connection string.

See Also