IVsUIContextManager.AdviseUIContextEvents(IVsUIContextEvents) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Advises for change events for all UI contexts.
public uint AdviseUIContextEvents (Microsoft.VisualStudio.Shell.Interop.IVsUIContextEvents callback);
abstract member AdviseUIContextEvents : Microsoft.VisualStudio.Shell.Interop.IVsUIContextEvents -> uint32
Public Function AdviseUIContextEvents (callback As IVsUIContextEvents) As UInteger
Parameters
- callback
- IVsUIContextEvents
The callback to invoke when a UI context value changes.
Returns
A cookie representing your subscription.
Remarks
This method is safe to access from any thread, though do be aware that if this method is called off the UI thread while a context is actively being set on the UI thread, the registered callback may miss the change notification.