OdbcCommand Konstruktory

Definice

Inicializuje novou instanci OdbcCommand třídy.

Přetížení

Name Description
OdbcCommand()

Inicializuje novou instanci OdbcCommand třídy.

OdbcCommand(String)

Inicializuje novou instanci OdbcCommand třídy s textem dotazu.

OdbcCommand(String, OdbcConnection)

Inicializuje novou instanci OdbcCommand třídy s textem dotazu a objektu OdbcConnection .

OdbcCommand(String, OdbcConnection, OdbcTransaction)

Inicializuje novou instanci OdbcCommand třídy s textem dotazu, OdbcConnection objektu a Transaction.

OdbcCommand()

Zdroj:
OdbcCommand.cs
Zdroj:
OdbcCommand.cs
Zdroj:
OdbcCommand.cs
Zdroj:
OdbcCommand.cs

Inicializuje novou instanci OdbcCommand třídy.

public:
 OdbcCommand();
public OdbcCommand();
Public Sub New ()

Poznámky

Základní konstruktor inicializuje všechna pole na výchozí hodnoty. V následující tabulce jsou uvedeny počáteční hodnoty vlastností pro instanci OdbcCommand.

Properties Počáteční hodnota
CommandText prázdný řetězec ("")
CommandTimeout 30
CommandType Text
Connection null

Viz také

Platí pro

OdbcCommand(String)

Zdroj:
OdbcCommand.cs
Zdroj:
OdbcCommand.cs
Zdroj:
OdbcCommand.cs
Zdroj:
OdbcCommand.cs

Inicializuje novou instanci OdbcCommand třídy s textem dotazu.

public:
 OdbcCommand(System::String ^ cmdText);
public OdbcCommand(string? cmdText);
public OdbcCommand(string cmdText);
new System.Data.Odbc.OdbcCommand : string -> System.Data.Odbc.OdbcCommand
Public Sub New (cmdText As String)

Parametry

cmdText
String

Text dotazu.

Viz také

Platí pro

OdbcCommand(String, OdbcConnection)

Zdroj:
OdbcCommand.cs
Zdroj:
OdbcCommand.cs
Zdroj:
OdbcCommand.cs
Zdroj:
OdbcCommand.cs

Inicializuje novou instanci OdbcCommand třídy s textem dotazu a objektu OdbcConnection .

public:
 OdbcCommand(System::String ^ cmdText, System::Data::Odbc::OdbcConnection ^ connection);
public OdbcCommand(string? cmdText, System.Data.Odbc.OdbcConnection? connection);
public OdbcCommand(string cmdText, System.Data.Odbc.OdbcConnection connection);
new System.Data.Odbc.OdbcCommand : string * System.Data.Odbc.OdbcConnection -> System.Data.Odbc.OdbcCommand
Public Sub New (cmdText As String, connection As OdbcConnection)

Parametry

cmdText
String

Text dotazu.

connection
OdbcConnection

Objekt OdbcConnection , který představuje připojení ke zdroji dat.

Viz také

Platí pro

OdbcCommand(String, OdbcConnection, OdbcTransaction)

Zdroj:
OdbcCommand.cs
Zdroj:
OdbcCommand.cs
Zdroj:
OdbcCommand.cs
Zdroj:
OdbcCommand.cs

Inicializuje novou instanci OdbcCommand třídy s textem dotazu, OdbcConnection objektu a Transaction.

public:
 OdbcCommand(System::String ^ cmdText, System::Data::Odbc::OdbcConnection ^ connection, System::Data::Odbc::OdbcTransaction ^ transaction);
public OdbcCommand(string? cmdText, System.Data.Odbc.OdbcConnection? connection, System.Data.Odbc.OdbcTransaction? transaction);
public OdbcCommand(string cmdText, System.Data.Odbc.OdbcConnection connection, System.Data.Odbc.OdbcTransaction transaction);
new System.Data.Odbc.OdbcCommand : string * System.Data.Odbc.OdbcConnection * System.Data.Odbc.OdbcTransaction -> System.Data.Odbc.OdbcCommand
Public Sub New (cmdText As String, connection As OdbcConnection, transaction As OdbcTransaction)

Parametry

cmdText
String

Text dotazu.

connection
OdbcConnection

Objekt OdbcConnection , který představuje připojení ke zdroji dat.

transaction
OdbcTransaction

Transakce, ve které se OdbcCommand provádí.

Poznámky

Následující tabulka uvádí počáteční hodnoty vlastností pro instanci této implementace OdbcCommand.

Properties Počáteční hodnota
CommandText cmdText
CommandTimeout 30
CommandType Text
Connection Nová OdbcConnection hodnota parametru connection .

Hodnotu některého z těchto parametrů můžete změnit nastavením související vlastnosti.

Viz také

Platí pro