다음을 통해 공유


OleDbFactory.CreateCommand 메서드

정의

강력한 형식의 DbCommand 인스턴스를 반환합니다.

public:
 override System::Data::Common::DbCommand ^ CreateCommand();
public override System.Data.Common.DbCommand CreateCommand ();
override this.CreateCommand : unit -> System.Data.Common.DbCommand
Public Overrides Function CreateCommand () As DbCommand

반환

강력한 형식의 새 DbCommand 인스턴스입니다.

예제

다음 코드는 강력한 형식의 반환 DbCommand 인스턴스:

Dim newFactory As OleDbFactory = OleDbFactory.Instance
Dim cmd As DbCommand = newFactory.CreateCommand()
OleDbFactory newFactory = OleDbFactory.Instance;
DbCommand cmd = newFactory.CreateCommand();

적용 대상