Compartilhar via


Inheritance of Bind Options

The bind options that specify the properties of the bind operation to be performed can be inherited from the provider's data source, session, and command objects.

Inheritance of Bind Options from the Data Source Object

When a client creates a session from a data source object by using IDBCreateSession, any binding properties set on the data source object are also set on the session object.

Inheritance of Bind Options from the Session Object

Any binding properties specified on the bind to the session object by the data source object or root binder are inherited when binding from the session object. If the client needs to use different binding properties, it must bind again from the object on which the binding properties were originally specified. Because of this limitation, the binding properties cannot be changed when binding to objects inside the same session.

If the dwBindURLFlags parameter is nonzero, the bind flags specified there are used for the new bind when a client binds from the session object using IBindResource. If dwBindURLFlags is zero, whatever flags were in effect when the session object was created (by using either IDBCreateSession from the data source object or IBindResource) are used for the new bind.

Inheritance of Bind Options from the Command Object

When a command object is created from a row or session object, all binding options that were in effect when the row or session object was created are inherited by the command object. These binding options propagate from the command object to the row or rowset object created from it.

This topic is a part of: