다음을 통해 공유


OracleClientFactory.CreateConnection 메서드

정의

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

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

반환

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

예제

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

Dim newFactory As OracleClientFactory = OracleClientFactory.Instance  
Dim connection As DbConnection = newFactory.CreateConnection()  
OracleClientFactory newFactory = OracleClientFactory.Instance;  
DbConnection connection = newFactory.CreateConnection();  

적용 대상