Op Englesch liesen Editéieren

Deelen iwwer


RoutedUICommand Constructors

Definition

Initializes a new instance of the RoutedUICommand class.

Overloads

RoutedUICommand()

Initializes a new instance of the RoutedUICommand class.

RoutedUICommand(String, String, Type)

Initializes a new instance of the RoutedUICommand class, using the specified descriptive text, declared name, and owner type.

RoutedUICommand(String, String, Type, InputGestureCollection)

Initializes a new instance of the RoutedUICommand class, using the specified descriptive text, declared name, owner type, and input gestures.

RoutedUICommand()

Initializes a new instance of the RoutedUICommand class.

C#
public RoutedUICommand();

See also

Applies to

.NET Framework 4.8.1 an aner Versiounen
Produkt Versiounen
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

RoutedUICommand(String, String, Type)

Initializes a new instance of the RoutedUICommand class, using the specified descriptive text, declared name, and owner type.

C#
public RoutedUICommand(string text, string name, Type ownerType);

Parameters

text
String

Descriptive text for the command.

name
String

The declared name of the command for serialization.

ownerType
Type

The type that is registering the command.

Exceptions

name is null.

ownerType is null.

See also

Applies to

.NET Framework 4.8.1 an aner Versiounen
Produkt Versiounen
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

RoutedUICommand(String, String, Type, InputGestureCollection)

Initializes a new instance of the RoutedUICommand class, using the specified descriptive text, declared name, owner type, and input gestures.

C#
public RoutedUICommand(string text, string name, Type ownerType, System.Windows.Input.InputGestureCollection inputGestures);

Parameters

text
String

Descriptive text for the command.

name
String

The declared name of the command for serialization.

ownerType
Type

The type that is registering the command.

inputGestures
InputGestureCollection

A collection of gestures to associate with the command.

Exceptions

name is null.

ownerType is null.

See also

Applies to

.NET Framework 4.8.1 an aner Versiounen
Produkt Versiounen
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10