combit List & Label 24 - .NET Online Web Help
SqlConnectionDataProvider Constructor(SqlConnection)
Example 


combit.ListLabel24.DataProviders Namespace > SqlConnectionDataProvider Class > SqlConnectionDataProvider Constructor : SqlConnectionDataProvider Constructor(SqlConnection)
The connection to use.
Initializes the data provider to access all elements available from the connection.
Syntax
'Declaration
 
Public Function New( _
   ByVal connection As SqlConnection _
)
public SqlConnectionDataProvider( 
   SqlConnection connection
)
public:
SqlConnectionDataProvider( 
   SqlConnection^ connection
)

Parameters

connection
The connection to use.
Example
SqlConnection conn = new SqlConnection(Properties.Settings.Default.ConnectionString);
SqlConnectionDataProvider provider = new SqlConnectionDataProvider(conn);
LL.DataSource = provider;
LL.Design();
Dim conn As New SqlConnection(Properties.Settings.[Default].ConnectionString)
Dim provider As New SqlConnectionDataProvider(conn)
LL.DataSource = provider
LL.Design()
Requirements

See Also

Reference

SqlConnectionDataProvider Class
SqlConnectionDataProvider Members
Overload List