Partilhar via


GraphCommandDefinition(String, String, GraphContextDirection, Int32) Constructor

Definition

Creates a new GraphCommandDefinition.

public:
 GraphCommandDefinition(System::String ^ id, System::String ^ label, Microsoft::VisualStudio::GraphModel::GraphContextDirection direction, int priority);
public GraphCommandDefinition (string id, string label, Microsoft.VisualStudio.GraphModel.GraphContextDirection direction, int priority);
new Microsoft.VisualStudio.GraphModel.GraphCommandDefinition : string * string * Microsoft.VisualStudio.GraphModel.GraphContextDirection * int -> Microsoft.VisualStudio.GraphModel.GraphCommandDefinition
Public Sub New (id As String, label As String, direction As GraphContextDirection, priority As Integer)

Parameters

id
String

The unique identifier.

label
String

The readable label.

direction
GraphContextDirection

The direction of the GraphContexts associated with this command.

priority
Int32

The priority used to sort the command when it is presented to the user.

Applies to