Click or drag to resize

IMcNotifySinkAttachToCategory Method

Sets up to automatically attach this object instance (McNotifySink) as a notification sink to any McObject which is created of a given category.

Namespace:  MediaCy.IQL.Engine
Assembly:  MediaCy.IQL.Engine (in MediaCy.IQL.Engine.dll) Version: 10.0.6912.0
Syntax
VB
Function AttachToCategory ( 
	vCategory As Object
) As IntPtr

Parameters

vCategory
Type: SystemObject
VARIANT : The McObject's category (see McObjectManager.IMcObject.Category).

Return Value

Type: IntPtr
A COOKIE_HANDLE value identifying this connection.
Remarks
This object instance MUST be created using McEngine.CreateObject("McImageLib.McNotifySink") (in order to establish a connection with the Object Manager) or this function will fail and return E_POINTER. 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.
See Also