Share via


CommandMetadata Constructors

Definition

Overloads

CommandMetadata(IReadOnlyDictionary<String,String>)

Initializes a new instance of the CommandMetadata class.

CommandMetadata(String, String)

Initializes a new instance of the CommandMetadata class.

CommandMetadata(String, String, String, Nullable<CommandFlags>, String, UInt32)

Initializes a new instance of the CommandMetadata class.

CommandMetadata(IReadOnlyDictionary<String,String>)

Initializes a new instance of the CommandMetadata class.

public CommandMetadata (System.Collections.Generic.IReadOnlyDictionary<string,string?> properties);
new Microsoft.VisualStudio.RpcContracts.Commands.CommandMetadata : System.Collections.Generic.IReadOnlyDictionary<string, string> -> Microsoft.VisualStudio.RpcContracts.Commands.CommandMetadata
Public Sub New (properties As IReadOnlyDictionary(Of String, String))

Parameters

properties
IReadOnlyDictionary<String,String>

The full set of properties to be used to initialize all required members of this type.

Applies to

CommandMetadata(String, String)

Initializes a new instance of the CommandMetadata class.

public CommandMetadata (string id, string displayName);
new Microsoft.VisualStudio.RpcContracts.Commands.CommandMetadata : string * string -> Microsoft.VisualStudio.RpcContracts.Commands.CommandMetadata
Public Sub New (id As String, displayName As String)

Parameters

id
String

The id of the command being defined. Must be unique within a given CommandSet.

displayName
String

The display name of the command.

Applies to

CommandMetadata(String, String, String, Nullable<CommandFlags>, String, UInt32)

Initializes a new instance of the CommandMetadata class.

public CommandMetadata (string id, string displayName, string? tooltipText, Microsoft.VisualStudio.RpcContracts.Commands.CommandFlags? flags, string? iconName, uint relativeSortOrder);
new Microsoft.VisualStudio.RpcContracts.Commands.CommandMetadata : string * string * string * Nullable<Microsoft.VisualStudio.RpcContracts.Commands.CommandFlags> * string * uint32 -> Microsoft.VisualStudio.RpcContracts.Commands.CommandMetadata
Public Sub New (id As String, displayName As String, tooltipText As String, flags As Nullable(Of CommandFlags), iconName As String, relativeSortOrder As UInteger)

Parameters

id
String

The id of the command being defined. Must be unique within a given CommandSet.

displayName
String

The display name of the command.

tooltipText
String

The tooltip text of the command.

flags
Nullable<CommandFlags>

The flags associated with the command.

iconName
String

The name of the icon to be displayed on the command.

relativeSortOrder
UInt32

Used to determine the specific placement of the command within the given DynamicCommandAnchor.

Applies to