Share via


DynamicStatusMenuCommand Class

Reduces merge conflicts during server integrations when you invoke a menu command.

This API is not CLS-compliant. 

Inheritance Hierarchy

Object
  MenuCommand
    Microsoft.VisualStudio.Shell.OleMenuCommand
      Microsoft.VisualStudio.Modeling.Shell.DynamicStatusMenuCommand

Namespace:  Microsoft.VisualStudio.Modeling.Shell
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0.dll)

Syntax

'Declaration
<CLSCompliantAttribute(False)> _
Public Class DynamicStatusMenuCommand _
    Inherits OleMenuCommand
[CLSCompliantAttribute(false)]
public class DynamicStatusMenuCommand : OleMenuCommand
[CLSCompliantAttribute(false)]
public ref class DynamicStatusMenuCommand : public OleMenuCommand
[<CLSCompliantAttribute(false)>]
type DynamicStatusMenuCommand =  
    class 
        inherit OleMenuCommand 
    end
public class DynamicStatusMenuCommand extends OleMenuCommand

The DynamicStatusMenuCommand type exposes the following members.

Constructors

  Name Description
Public method DynamicStatusMenuCommand Initializes a new instance of the DynamicStatusMenuCommand class.

Top

Properties

  Name Description
Public property Checked Gets or sets a value indicating whether this menu item is checked. (Inherited from MenuCommand.)
Public property CommandID Gets the CommandID associated with this menu command. (Inherited from MenuCommand.)
Public property Enabled Gets a value indicating whether this menu item is available. (Inherited from MenuCommand.)
Public property MatchedCommandId (Inherited from OleMenuCommand.)
Public property OleStatus (Inherited from OleMenuCommand.)
Public property ParametersDescription (Inherited from OleMenuCommand.)
Public property Properties Gets the public properties associated with the MenuCommand. (Inherited from MenuCommand.)
Public property Supported Gets or sets a value indicating whether this menu item is supported. (Inherited from MenuCommand.)
Public property Text (Inherited from OleMenuCommand.)
Public property Visible Gets or sets a value indicating whether this menu item is visible. (Inherited from MenuCommand.)

Top

Methods

  Name Description
Public method DynamicItemMatch (Inherited from OleMenuCommand.)
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Invoke Invokes the command. (Inherited from MenuCommand.)
Public method Invoke(Object) (Inherited from OleMenuCommand.)
Public method Invoke(Object, IntPtr) (Inherited from OleMenuCommand.)
Public method Invoke(Object, IntPtr, OLECMDEXECOPT) (Inherited from OleMenuCommand.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method OnCommandChanged Raises the CommandChanged event. (Inherited from MenuCommand.)
Public method ToString Returns a string representation of this menu command. (Inherited from MenuCommand.)

Top

Events

  Name Description
Public event BeforeQueryStatus (Inherited from OleMenuCommand.)
Public event CommandChanged Occurs when the menu command changes. (Inherited from MenuCommand.)

Top

Remarks

This class is an alias for OleMenuCommand. You must delete the alias after you finish integration.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.Modeling.Shell Namespace