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


combit.ListLabel25.DataProviders Namespace > SqlConnectionDataProvider Class > SqlConnectionDataProvider Constructor : SqlConnectionDataProvider Constructor(SqlConnection,String)
The connection to use.
The allowed table schema.
Initializes the data provider to access all elements available from the connection that belong to the passed schema.
Syntax
'Declaration
 
Public Function New( _
   ByVal connection As SqlConnection, _
   ByVal tableSchema As String _
)
public SqlConnectionDataProvider( 
   SqlConnection connection,
   string tableSchema
)
public:
SqlConnectionDataProvider( 
   SqlConnection^ connection,
   String^ tableSchema
)

Parameters

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

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

See Also

Reference

SqlConnectionDataProvider Class
SqlConnectionDataProvider Members
Overload List