다음을 통해 공유


OleDbCommand 멤버

SQL 문이나 데이터 소스에 대해 실행할 저장 프로시저를 나타냅니다.

다음 표에서는 OleDbCommand 형식에 의해 노출되는 멤버를 보여 줍니다.

Public 생성자

  이름 설명
Public method OleDbCommand 오버로드되었습니다. OleDbCommand 클래스의 새 인스턴스를 초기화합니다.

위쪽

Public 속성

( Protected 속성 참조)

  이름 설명
Public property CommandText 재정의되었습니다. SQL 문이나 데이터 소스에서 실행할 저장 프로시저를 가져오거나 설정합니다.
Public property CommandTimeout 재정의되었습니다. 명령 실행을 종료하고 오류를 생성하기 전에 대기 시간을 가져오거나 설정합니다.
Public property CommandType 재정의되었습니다. CommandText 속성을 해석하는 방법을 나타내는 값을 가져오거나 설정합니다.
Public property Connection OleDbCommand의 이 인스턴스에서 사용되는 OleDbConnection을 가져오거나 설정합니다.
Public property Container  Component가 포함된 IContainer를 가져옵니다.(Component에서 상속됨)
Public property DesignTimeVisible 재정의되었습니다. 사용자 지정 Windows Forms 디자이너 컨트롤에서 명령 개체의 표시 여부를 나타내는 값을 가져오거나 설정합니다.
Public property Parameters OleDbParameterCollection을 가져옵니다.
Public property Site  ComponentISite를 가져오거나 설정합니다.(Component에서 상속됨)
Public property Transaction OleDbCommand가 실행되는 OleDbTransaction을 가져오거나 설정합니다.
Public property UpdatedRowSource 재정의되었습니다. OleDbDataAdapterUpdate 메서드에 의해 사용될 때 명령 결과가 DataRow에 적용되는 방법을 가져오거나 설정합니다.

위쪽

Protected 속성

  이름 설명
Protected property CanRaiseEvents  구성 요소가 이벤트를 발생시킬 수 있는지 여부를 나타내는 값을 가져옵니다.(Component에서 상속됨)
Protected property DesignMode  Component가 현재 디자인 모드인지 여부를 나타내는 값을 가져옵니다.(Component에서 상속됨)
Protected property Events  Component에 연결된 이벤트 처리기의 목록을 가져옵니다.(Component에서 상속됨)

위쪽

Public 메서드

( Protected 메서드 참조)

  이름 설명
Public method Cancel 재정의되었습니다. OleDbCommand의 실행을 취소하려고 합니다.
Public method Clone 현재 인스턴스의 복사본인 새 OleDbCommand 개체를 만듭니다.
Public method CreateObjRef  원격 개체와 통신하는 데 사용되는 프록시 생성에 필요한 모든 관련 정보가 들어 있는 개체를 만듭니다. (MarshalByRefObject에서 상속됨)
Public method CreateParameter OleDbParameter 개체의 새 인스턴스를 만듭니다.
Public method Dispose  오버로드되었습니다. Component에서 사용하는 리소스를 해제합니다. (Component에서 상속됨)
Public method Equals  오버로드되었습니다. 두 개의 Object 인스턴스가 같은지 여부를 확인합니다. (Object에서 상속됨)
Public method ExecuteNonQuery 재정의되었습니다. Connection에 대해 SQL 문을 실행하고 영향 받는 행 번호를 반환합니다.
Public method ExecuteReader 오버로드되었습니다. CommandTextConnection에 보내고 OleDbDataReader를 빌드합니다.
Public method ExecuteScalar 재정의되었습니다. 쿼리를 실행하고 쿼리에서 반환된 결과 집합의 첫 번째 행의 첫 번째 열을 반환합니다. 추가 열이나 행은 무시됩니다.
Public method GetHashCode  특정 형식에 대한 해시 함수로 사용되며 GetHashCode는 해시 알고리즘 및 해시 테이블과 같은 데이터 구조에 사용하기 적당합니다. (Object에서 상속됨)
Public method GetLifetimeService  이 인스턴스의 수명 정책을 제어하는 현재의 수명 서비스 개체를 검색합니다. (MarshalByRefObject에서 상속됨)
Public method GetType  현재 인스턴스의 Type을 가져옵니다. (Object에서 상속됨)
Public method InitializeLifetimeService  이 인스턴스의 수명 정책을 제어하기 위한 수명 서비스 개체를 가져옵니다. (MarshalByRefObject에서 상속됨)
Public method Prepare 재정의되었습니다. 데이터 소스에 명령의 준비 버전이나 컴파일 버전을 만듭니다.
Public method Static ReferenceEquals  지정한 Object 인스턴스가 동일한지 여부를 확인합니다. (Object에서 상속됨)
Public method ResetCommandTimeout CommandTimeout 속성을 기본값으로 다시 설정합니다.
Public method ToString  Component의 이름이 포함된 String을 반환합니다. 이 메서드는 재정의할 수 없습니다. (Component에서 상속됨)

위쪽

Protected 메서드

  이름 설명
Protected method Dispose  오버로드되었습니다. Component에서 사용하는 리소스를 해제합니다. (Component에서 상속됨)
Protected method Finalize  가비지 수집에 의해 Component가 회수되기 전에 관리되지 않는 리소스를 해제하고 기타 정리 작업을 수행합니다. (Component에서 상속됨)
Protected method GetService  Component 또는 해당 Container에서 제공하는 서비스를 나타내는 개체를 반환합니다. (Component에서 상속됨)
Protected method MemberwiseClone  오버로드되었습니다. ( MarshalByRefObject에서 상속됨)

위쪽

Public 이벤트

  이름 설명
Public event Disposed  구성 요소에 대한 Disposed 이벤트를 수신하는 이벤트 처리기를 추가합니다.(Component에서 상속됨)

위쪽

명시적 인터페이스 구현

  이름 설명
Explicit interface implementation Method System.Data.IDbCommand.CreateParameter  
Explicit interface implementation System.Data.IDbCommand.ExecuteReader 오버로드되었습니다.  
Explicit interface implementation Method System.ICloneable.Clone 이 멤버에 대한 설명은 ICloneable.Clone을 참조하십시오.

위쪽

참고 항목

참조

OleDbCommand 클래스
System.Data.OleDb 네임스페이스
OleDbDataAdapter
OleDbConnection

기타 리소스

명령 사용