combit List & Label 25 - .NET Online Web Help
OleDbConnectionDataProvider Constructor(OleDbConnection)
Example 


combit.ListLabel25.DataProviders Namespace > OleDbConnectionDataProvider Class > OleDbConnectionDataProvider Constructor : OleDbConnectionDataProvider Constructor(OleDbConnection)
The connection to use.
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 7 SP1 - Windows 10 Version 1909, Windows Server 2008 R2 - 2019

See Also

Reference

OleDbConnectionDataProvider Class
OleDbConnectionDataProvider Members
Overload List