OleDbFactory.Instance Field

 

Gets an instance of the OleDbFactory. This can be used to retrieve strongly-typed data objects.

Namespace:   System.Data.OleDb
Assembly:  System.Data (in System.Data.dll)

public static readonly OleDbFactory Instance

The following code fragment uses the P:System.Data.OleDb.OleDbFactory.Instance property to retrieve an OleDbFactory instance, and then return a strongly-typed DbCommand instance:

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

.NET Framework
Available since 2.0
Return to top
Show: