Register the context manager in the Windows registry. This enables context participant applications to locate and bind to the context manager.
To create a context manager reference, call the following:
Utils.COMCreateObject<IContextManager>("CCOW.ContextManager");
The Leadtools.Ccow.IContextSession interface supports the following operations:
1. #### Activating a Context Session . Activates a context manager so that it represents the active session for a point-of-use device.
2. #### Creating a Context Session Instructs the context manager to create a new context manager. Note: A new session deactivates the current session, allowing the users to share the same session.
To join a common context session, create a Context Manager:
Utils.COMCreateObject<IContextManager>("CCOW.ContextManager");
After a context manager has been created, call the IContextManager.JoinCommonContext method to become a participant.
Calling the IContextManager.JoinCommonContext method returns a participant coupon (an integer number assigned by the context manager to the application), when it joins a common context session. This coupon is subsequently used by the application to identify itself when it calls a context manager method requiring application identification.
Note: Setting survey to true when joining the common context means the application will participate in context change surveys. If the parameter is false, the application will only be informed when a context change has been accepted.
Calling IContextManager.SuspendParticipation enables an application to indicate that it wants to suspend its active participation in a common context session, while remaining registered as a participant.
To resume a suspended participant in a common context session, call IContextManager.SuspendParticipation
After the application joins the context session, call the IContextData.GetItemNames and IContextData.GetItemValues methods to get the current context session state.
To disconnect the application from the context session, call the IContextManager.LeaveCommonContext method.
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document