Compartir a través de


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

'Declaración
Public Event BeforeQueryStatus As EventHandler
'Uso
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

See Also

Reference

OleMenuCommand Class

OleMenuCommand Members

Microsoft.VisualStudio.Shell Namespace