OleMenuCommand.BeforeQueryStatus Event
Called when a client requests the status of the command.
Namespace: Microsoft.VisualStudio.Shell
Assemblies: Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
Syntax
'Dichiarazione
Public Event BeforeQueryStatus As EventHandler
'Utilizzo
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);
}
member BeforeQueryStatus : IEvent<EventHandler,
EventArgs>
JScript does not support events.
.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.