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
id
Type: System.StringThe unique identifier.
label
Type: System.StringThe readable label.
direction
Type: Microsoft.VisualStudio.GraphModel.GraphContextDirectionThe direction of the GraphContexts associated with this command.
priority
Type: System.Int32The 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.