OdbcCommand 생성자
정의
OdbcCommand 클래스의 새 인스턴스를 초기화합니다.Initializes a new instance of the OdbcCommand class.
오버로드
OdbcCommand() |
OdbcCommand 클래스의 새 인스턴스를 초기화합니다.Initializes a new instance of the OdbcCommand class. |
OdbcCommand(String) |
쿼리 텍스트를 사용하여 OdbcCommand 클래스의 새 인스턴스를 초기화합니다.Initializes a new instance of the OdbcCommand class with the text of the query. |
OdbcCommand(String, OdbcConnection) |
쿼리 텍스트와 OdbcCommand 개체를 사용하여 OdbcConnection 클래스의 새 인스턴스를 초기화합니다.Initializes a new instance of the OdbcCommand class with the text of the query and an OdbcConnection object. |
OdbcCommand(String, OdbcConnection, OdbcTransaction) |
쿼리의 텍스트, OdbcConnection 개체 및 Transaction을 사용하여 OdbcCommand 클래스의 새 인스턴스를 초기화합니다.Initializes a new instance of the OdbcCommand class with the text of the query, an OdbcConnection object, and the Transaction. |
OdbcCommand()
OdbcCommand 클래스의 새 인스턴스를 초기화합니다.Initializes a new instance of the OdbcCommand class.
public:
OdbcCommand();
public OdbcCommand ();
Public Sub New ()
설명
기본 생성자는 모든 필드를 기본값으로 초기화 합니다.The base constructor initializes all fields to their default values. 다음 표에서 인스턴스에 대 한 초기 속성 값을 보여 줍니다. OdbcCommand합니다.The following table shows initial property values for an instance of OdbcCommand.
속성Properties | 초기 값Initial Value |
---|---|
CommandText | 빈 문자열 ("")empty string ("") |
CommandTimeout | 3030 |
CommandType | Text |
Connection | nullnull |
추가 정보
OdbcCommand(String)
쿼리 텍스트를 사용하여 OdbcCommand 클래스의 새 인스턴스를 초기화합니다.Initializes a new instance of the OdbcCommand class with the text of the query.
public:
OdbcCommand(System::String ^ cmdText);
public OdbcCommand (string cmdText);
new System.Data.Odbc.OdbcCommand : string -> System.Data.Odbc.OdbcCommand
Public Sub New (cmdText As String)
매개 변수
- cmdText
- String
쿼리 텍스트입니다.The text of the query.
추가 정보
OdbcCommand(String, OdbcConnection)
쿼리 텍스트와 OdbcCommand 개체를 사용하여 OdbcConnection 클래스의 새 인스턴스를 초기화합니다.Initializes a new instance of the OdbcCommand class with the text of the query and an OdbcConnection object.
public:
OdbcCommand(System::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)
매개 변수
- cmdText
- String
쿼리 텍스트입니다.The text of the query.
- connection
- OdbcConnection
데이터 소스에 대한 연결을 나타내는 OdbcConnection 개체입니다.An OdbcConnection object that represents the connection to a data source.
추가 정보
OdbcCommand(String, OdbcConnection, OdbcTransaction)
쿼리의 텍스트, OdbcConnection 개체 및 Transaction을 사용하여 OdbcCommand 클래스의 새 인스턴스를 초기화합니다.Initializes a new instance of the OdbcCommand class with the text of the query, an OdbcConnection object, and the 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);
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)
매개 변수
- cmdText
- String
쿼리 텍스트입니다.The text of the query.
- connection
- OdbcConnection
데이터 소스에 대한 연결을 나타내는 OdbcConnection 개체입니다.An OdbcConnection object that represents the connection to a data source.
- transaction
- OdbcTransaction
OdbcCommand가 실행되는 트랜잭션입니다.The transaction in which the OdbcCommand executes.
설명
다음 표에서는이 OdbcCommand구현의 인스턴스에 대 한 초기 속성 값을 보여 줍니다.The following table shows initial property values for an instance of this implementation of the OdbcCommand.
속성Properties | 초기 값Initial Value |
---|---|
CommandText | cmdText |
CommandTimeout | 3030 |
CommandType | Text |
Connection | connection 매개 변수의 값인 새 OdbcConnection입니다.A new OdbcConnection that is the value for the connection parameter. |
관련 속성을 설정 하 여 이러한 매개 변수 중 하나에 대 한 값을 변경할 수 있습니다.You can change the value for any one of these parameters by setting the related property.