RoutedUICommand 建構函式

定義

初始化 RoutedUICommand 類別的新執行個體。Initializes a new instance of the RoutedUICommand class.

多載

RoutedUICommand()

初始化 RoutedUICommand 類別的新執行個體。Initializes a new instance of the RoutedUICommand class.

RoutedUICommand(String, String, Type)

使用指定的描述文字、宣告名稱和擁有者類型,初始化 RoutedUICommand 類別的新執行個體。Initializes a new instance of the RoutedUICommand class, using the specified descriptive text, declared name, and owner type.

RoutedUICommand(String, String, Type, InputGestureCollection)

使用指定的描述文字、宣告名稱、擁有者類型和輸入筆勢,初始化 RoutedUICommand 類別的新執行個體。Initializes a new instance of the RoutedUICommand class, using the specified descriptive text, declared name, owner type, and input gestures.

RoutedUICommand()

初始化 RoutedUICommand 類別的新執行個體。Initializes a new instance of the RoutedUICommand class.

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

另請參閱

RoutedUICommand(String, String, Type)

使用指定的描述文字、宣告名稱和擁有者類型,初始化 RoutedUICommand 類別的新執行個體。Initializes a new instance of the RoutedUICommand class, using the specified descriptive text, declared name, and owner type.

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

參數

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.

例外狀況

namenullname is null.

ownerTypenullownerType is null.

另請參閱

RoutedUICommand(String, String, Type, InputGestureCollection)

使用指定的描述文字、宣告名稱、擁有者類型和輸入筆勢,初始化 RoutedUICommand 類別的新執行個體。Initializes a new instance of the RoutedUICommand class, using the specified descriptive text, declared name, owner type, and input gestures.

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

參數

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.

例外狀況

namenullname is null.

ownerTypenullownerType is null.

另請參閱

適用於