combit List & Label 29 - .NET Hilfe
combit.Reporting.DataProviders Namespace / SqlConnectionDataProvider Klasse / SqlConnectionDataProvider Konstruktor / SqlConnectionDataProvider Konstruktor(SqlConnection,String)
Die zu verwendende Connection.
Der erlaubte Tabellenschema.
Beispiele


In diesem Thema
    SqlConnectionDataProvider Konstruktor(SqlConnection,String)
    In diesem Thema
    Initialisiert den Datenprovider um auf alle verfügbaren Elemente der Connection zuzugreifen, die zu dem übergebenen Schema gehören.
    Syntax
    'Deklaration
     
    
    Public Function New( _
       ByVal connection As SqlConnection, _
       ByVal tableSchema As String _
    )
    public SqlConnectionDataProvider( 
       SqlConnection connection,
       string tableSchema
    )
    public:
    SqlConnectionDataProvider( 
       SqlConnection^ connection,
       String^ tableSchema
    )

    Parameter

    connection
    Die zu verwendende Connection.
    tableSchema
    Der erlaubte Tabellenschema.
    Beispiele
    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()
    Anforderungen

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

    Siehe auch