Share via


RoutedCommand Konstruktory

Definice

Inicializuje novou instanci RoutedCommand třídy .

Přetížení

RoutedCommand()

Inicializuje novou instanci RoutedCommand třídy .

RoutedCommand(String, Type)

Inicializuje novou instanci RoutedCommand třídy se zadaným názvem a typem vlastníka.

RoutedCommand(String, Type, InputGestureCollection)

Inicializuje novou instanci RoutedCommand třídy se zadaným názvem, typem vlastníka a kolekcí gest.

RoutedCommand()

Inicializuje novou instanci RoutedCommand třídy .

public:
 RoutedCommand();
public RoutedCommand ();
Public Sub New ()

Viz také

Platí pro

RoutedCommand(String, Type)

Inicializuje novou instanci RoutedCommand třídy se zadaným názvem a typem vlastníka.

public:
 RoutedCommand(System::String ^ name, Type ^ ownerType);
public RoutedCommand (string name, Type ownerType);
new System.Windows.Input.RoutedCommand : string * Type -> System.Windows.Input.RoutedCommand
Public Sub New (name As String, ownerType As Type)

Parametry

name
String

Deklarovaný název serializace.

ownerType
Type

Typ, který registruje příkaz.

Výjimky

name je null.

ownerType je null.

Viz také

Platí pro

RoutedCommand(String, Type, InputGestureCollection)

Inicializuje novou instanci RoutedCommand třídy se zadaným názvem, typem vlastníka a kolekcí gest.

public:
 RoutedCommand(System::String ^ name, Type ^ ownerType, System::Windows::Input::InputGestureCollection ^ inputGestures);
public RoutedCommand (string name, Type ownerType, System.Windows.Input.InputGestureCollection inputGestures);
new System.Windows.Input.RoutedCommand : string * Type * System.Windows.Input.InputGestureCollection -> System.Windows.Input.RoutedCommand
Public Sub New (name As String, ownerType As Type, inputGestures As InputGestureCollection)

Parametry

name
String

Deklarovaný název serializace.

ownerType
Type

Typ, který registruje příkaz.

inputGestures
InputGestureCollection

Výchozí vstupní gesta přidružená k tomuto příkazu

Výjimky

name je null.

délka je name nula

-nebo-

ownerType je null.

Viz také

Platí pro