Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2005
Visual Studio
Visual Studio SDK
Reference
Classes
 BeforeQueryStatus Event

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2005/.NET Framework 2.0

Other versions are also available for the following:
Visual Studio SDK
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)

Visual Basic (Declaration)
Public Event BeforeQueryStatus As EventHandler
Visual Basic (Usage)
Dim instance As OleMenuCommand
Dim handler As EventHandler

AddHandler instance.BeforeQueryStatus, handler
C#
public event EventHandler BeforeQueryStatus
C++
public:
event EventHandler^ BeforeQueryStatus {
	void add (EventHandler^ value);
	void remove (EventHandler^ value);
}
J#
/** @event */
public void add_BeforeQueryStatus (EventHandler value)

/** @event */
public void remove_BeforeQueryStatus (EventHandler value)
JScript
JScript supports the use of events, but not the declaration of new ones.
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker