Partager via


Binder Objects

Binder objects are OLE DB objects that bind resources named by URLs to other OLE DB objects. There are two types of binder objects, and they are described as follows:

  • The root binder object oversees the direct binding process; it has a well-known CLSID and is part of the Microsoft? Windows? 2000 operating system. For consumers, the root binder object is the starting point of their interaction with OLE DB 2.5-compliant providers.

  • The provider binder object performs direct binding operations on the URL namespace for which it is registered. Each OLE DB 2.5-compliant provider implements its own provider binder object.

The binder object cotype is defined as follows. For more information about cotypes, see Conceptual Programming Models in OLE DB.

CoType TBinder {
   [mandatory]   interface IBindResource;
   [mandatory]   interface ICreateRow;
   [mandatory]   interface IDBBinderProperties;
   [optional]    interface IRegisterProvider;        // Root binder only
   [optional]    interface ISupportErrorInfo;
}

Remarks

All binder objects must expose the interfaces listed in the following table.

Interface

Use

IBindResource

Binds to an object named by a URL.

ICreateRow

Creates and binds to an object named by a URL.

IDBBinderProperties

Gets, sets, or resets direct binding properties.

This section contains the following topics:

This topic is a part of: