Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[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
- id 
 Type: System.String- The unique identifier. 
- label 
 Type: System.String- The readable label. 
- direction 
 Type: Microsoft.VisualStudio.GraphModel.GraphContextDirection- The direction of the GraphContexts associated with this command. 
- priority 
 Type: System.Int32- The priority used to sort the command when it is presented to the user. 
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.