|
|
|||||||||||||
Interface IPropertyNotifySinkpublic interface IPropertyNotifySink extends IUnknown { // Fields public static final _Guid iid; // Methods public void OnChanged(int dispID); public void OnRequestEdit(int dispID); } This interface provides methods that allow a sink object to receive notifications about property changes from another object. The notifying object must support IPropertyNotifySink as an outgoing interface. The client that needs to receive notifications creates a sink with this interface and connects it to the connectable object by using the connection point mechanism. The notifying object is required to call the methods of IPropertyNotifySink when it changes a property marked with the bindable attribute or when it is about to change a property marked with the requestedit attribute. There is one exception: no notifications are sent to the sink object as a result of an object's initialization or loading procedures. Therefore, notifications to the IPropertyNotifySink interface are meaningful only in the context of a fully loaded and initialized object. The sink object throws a ComException object (either a ComFailException or a ComSuccessException) to signal that it does not want a requestedit property to be changed. The notifying object must honor the sink object's request not to change the property. This interface wraps the Component Object Model (COM) IPropertyNotifySink interface. IUnknown | +--IPropertyNotifySink MethodsOnChangedpublic void OnChanged(int dispID); OnRequestEditpublic void OnRequestEdit(int dispID); Fields
|
© 1998 Microsoft Corporation. All rights reserved. Terms of use. |