combit List & Label 25 - .NET Online Web Help
MySqlConnectionDataProvider Constructor(IDbConnection)
Example 


combit.ListLabel25.DataProviders Namespace > MySqlConnectionDataProvider Class > MySqlConnectionDataProvider Constructor : MySqlConnectionDataProvider Constructor(IDbConnection)
Initializes the data provider to access the data from the passed IDbConnection.
Syntax
'Declaration
 
Public Function New( _
   ByVal connection As IDbConnection _
)
public MySqlConnectionDataProvider( 
   IDbConnection connection
)
public:
MySqlConnectionDataProvider( 
   IDbConnection^ connection
)

Parameters

connection
Example
string connectionString = "Server=myServerAddress;Database=myDataBase;Uid=myUsername;Pwd=myPassword;";
MySqlConnection connection = new MySqlConnection(connectionString);

MySqlConnectionDataProvider provider = new MySqlConnectionDataProvider(connection);
LL.DataSource = provider;
LL.Design();
Dim connectionString As String = "Server=myServerAddress;Database=myDataBase;Uid=myUsername;Pwd=myPassword;"
Dim connection As New MySqlConnection(connectionString)

Dim provider As New MySqlConnectionDataProvider(connection)
LL.DataSource = provider
LL.Design()
Requirements

Platforms: Windows 7 SP1 - Windows 10 Version 1909, Windows Server 2008 R2 - 2019

See Also

Reference

MySqlConnectionDataProvider Class
MySqlConnectionDataProvider Members
Overload List