Delen via


GraphCommandDefinition Constructor

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Creates a new GraphCommandDefinition.

Namespace:  Microsoft.VisualStudio.GraphModel
Assembly:  Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)

Syntax

'Declaration
Public Sub New ( _
    id As String, _
    label As String, _
    direction As GraphContextDirection, _
    priority As Integer _
)
public GraphCommandDefinition(
    string id,
    string label,
    GraphContextDirection direction,
    int priority
)
public:
GraphCommandDefinition(
    String^ id, 
    String^ label, 
    GraphContextDirection direction, 
    int priority
)
new : 
        id:string * 
        label:string * 
        direction:GraphContextDirection * 
        priority:int -> GraphCommandDefinition
public function GraphCommandDefinition(
    id : String, 
    label : String, 
    direction : GraphContextDirection, 
    priority : int
)

Parameters

  • priority
    Type: System.Int32

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

.NET Framework Security

See Also

Reference

GraphCommandDefinition Class

Microsoft.VisualStudio.GraphModel Namespace