共用方式為


OracleClientFactory.Instance 欄位

定義

取得 OracleClientFactory 的執行個體,可以用來擷取強型別的資料物件。

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 

欄位值

範例

下列代碼段會 Instance 使用 字段來擷取 OracleClientFactory 實例,然後傳回強型別 DbCommand 實例。

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

適用於