OleMenuCommand.BeforeQueryStatus Event
Called when a client requests the status of the command.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
Syntax
'Declaration
Public Event BeforeQueryStatus As EventHandler
'Usage
Dim instance As OleMenuCommand
Dim handler As EventHandler
AddHandler instance.BeforeQueryStatus, handler
public event EventHandler BeforeQueryStatus
public:
event EventHandler^ BeforeQueryStatus {
void add (EventHandler^ value);
void remove (EventHandler^ value);
}
JScript does not support events.
Remarks
This event fires whenever the menu that hosts the command is opened, and is commonly used to check the current visibility of the command before it is displayed.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.