Compartilhar via


OracleClientFactory.Instance Campo

Definição

Obtém uma instância do OracleClientFactory, que pode ser usada para recuperar objetos de dados fortemente tipados.

public: static initonly System::Data::OracleClient::OracleClientFactory ^ Instance;
public static readonly System.Data.OracleClient.OracleClientFactory Instance;
 staticval mutable Instance : System.Data.OracleClient.OracleClientFactory
Public Shared ReadOnly Instance As OracleClientFactory 

Valor do campo

Exemplos

O fragmento de código a seguir usa o Instance campo para recuperar uma OracleClientFactory instância e retornar uma instância fortemente tipada DbCommand .

Dim newFactory As OracleClientFactory = OracleClientFactory.Instance  
Dim command As DbCommand = newFactory.CreateCommand()  
OracleClientFactory newFactory = OracleClientFactory.Instance;  
DbCommand command = newFactory.CreateCommand();  

Aplica-se a