Platform SDK: CDO for Windows 2000

About IDataSource Binding

Binding is the persistent association between a Message object (the binder) and another object that exposes the appropriate interface (the bindee). When operations such as the SaveToObject and OpenObject methods are carried out, a binding is created at run time and is maintained after the operations are complete. After a binding has occurred, properties such as Source and SourceClass can be used to identify and access the interface on the currently bound object. The IsDirty property can be used to identify whether the content within the Message object has changed since the last rebinding or since it was last saved into the bound object. The Save method saves the content in the Message object into the currently bound object.

Each subsequent call to the OpenObject or SaveToObject method creates a new binding. These operations are similar to the Microsoft Word Open and SaveAs commands in the File menu: