Binder Objects

OLE DB Programmer's Reference

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" in Chapter 1: Overview of OLE DB.

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

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.

1998-2001 Microsoft Corporation. All rights reserved.



Microsoft Ole Db 2.0 Programmer's Reference and Data Access SDK
Microsoft OLE DB 2.0 Programmers Reference and Data Access SDK (Microsoft Professional Editions)
ISBN: 0735605904
EAN: 2147483647
Year: 1998
Pages: 1083

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net