Export (0) Print
Expand All

OracleClientFactory.Instance Field

Gets an instance of the OracleClientFactory, which can be used to retrieve strongly typed data objects.

Namespace: System.Data.OracleClient
Assembly: System.Data.OracleClient (in system.data.oracleclient.dll)

'Declaration
Public Shared ReadOnly Instance As OracleClientFactory
'Usage
Dim value As OracleClientFactory

value = OracleClientFactory.Instance

public static final OracleClientFactory Instance
public static final var Instance : OracleClientFactory
Not applicable.

The following code fragment uses the Instance field to retrieve an OracleClientFactory instance and then return a strongly typed DbCommand instance.

[Visual Basic]

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

[C#]

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

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2014 Microsoft