combit List & Label 29 - .NET Help
combit.Reporting.DataProviders Namespace / OleDbConnectionDataProvider Class / OleDbConnectionDataProvider Constructor / OleDbConnectionDataProvider Constructor(OleDbConnection)
The connection to use.
Example


In This Topic
    OleDbConnectionDataProvider Constructor(OleDbConnection)
    In This Topic
    Initializes the data provider to access the data from the passed OleDbConnection.
    Syntax
    'Declaration
     
    
    Public Function New( _
       ByVal connection As OleDbConnection _
    )
    public OleDbConnectionDataProvider( 
       OleDbConnection connection
    )
    public:
    OleDbConnectionDataProvider( 
       OleDbConnection^ connection
    )

    Parameters

    connection
    The connection to use.
    Example
    OleDbConnection conn = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + DatabasePath); 
    OleDbConnectionDataProvider provider = new OleDbConnectionDataProvider(conn); 
    LL.DataSource = provider; 
    LL.Design();
    Dim conn As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + DatabasePath)
    Dim provider As New OleDbConnectionDataProvider(conn)
    LL.DataSource = provider
    LL.Design()
    Requirements

    Platforms: Windows 10 (Version 21H2 - 23H2), Windows 11 (21H2 - 22H2), Windows Server 2016 - 2022
    .NET: .NET Framework 4.8, .NET 6, .NET 7, .NET 8

    See Also