PrintDocument for WinForms | ComponentOne
C1.PrintDocument.4.5.2 Assembly / C1.C1Preview.DataBinding Namespace / DataSource Class / DataSource Constructor / DataSource Constructor(DataProviderEnum,String)
A DataProviderEnum specifying the type of this data source.
The data source connection string.

In This Topic
    DataSource Constructor(DataProviderEnum,String)
    In This Topic
    Initializes a new instance of the DataSource class, assigning the data source type and connection string.
    Syntax
    'Declaration
     
    Public Function New( _
       ByVal dataProvider As DataProviderEnum, _
       ByVal connectString As String _
    )
    public DataSource( 
       DataProviderEnum dataProvider,
       string connectString
    )

    Parameters

    dataProvider
    A DataProviderEnum specifying the type of this data source.
    connectString
    The data source connection string.
    See Also