Description
Attach this object instance (McNotifySink) as a sink for notifications sent by pObject.
-
Return Type
-
A Long value.
A long value identifying this connection.
-
Syntax
-
object.AttachToObject (pObject)
The AttachToObject Method syntax has these parts: |
| object | An expression evaluating to an object of type McNotifySink. | | pObject | Required. An Object object. IDispatch* : An IMcObject or an object implementing IMcObjConnection.
| Remarks
pObject can be an IMcObject or any object implementing the IMcObjConnection interface, in which case the connected IMcObject is retrieved. All operators implement IMcObjConnection. Once this instance is connected, notifications can be received using the standard IConnectionPoint scheme (With Events in VB) using this instance as the event source.
Exceptions
E_NOINTERFACE if the source object is NULL or not an IMcObject or operator
|