Share via


TaskMenuCommand Class

Represents a menu command entry on the context menu for a validation item in the error list.

Inheritance Hierarchy

Object
  Microsoft.VisualStudio.Modeling.Shell.TaskMenuCommand
    Microsoft.VisualStudio.Modeling.Shell.NavigateToModelExplorerTreeNodeCommand
    Microsoft.VisualStudio.Modeling.Shell.NavigateToShapesOnDiagramCommand

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

Syntax

'Declaration
Public MustInherit Class TaskMenuCommand
public abstract class TaskMenuCommand
public ref class TaskMenuCommand abstract
[<AbstractClass>]
type TaskMenuCommand =  class end
public abstract class TaskMenuCommand

The TaskMenuCommand type exposes the following members.

Constructors

  Name Description
Protected method TaskMenuCommand() Constructor.
Protected method TaskMenuCommand(Int32) Constructor.

Top

Properties

  Name Description
Public property MenuText Gets the text associated with this menu command entry
Public property Priority Indicates the priority of the command. Commands with lower numbers are shown earlier in the list, and the first command is executed on double-click.

Top

Methods

  Name Description
Public method DoCommand Executes the command.
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.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

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