Share via


IVsUIContextManager.AdviseUIContextEvents(IVsUIContextEvents) Method

Definition

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.

Applies to