CommandManager.RegisterClassCommandBinding(Type, CommandBinding) 方法

定义

使用指定的类型注册 CommandBinding

public:
 static void RegisterClassCommandBinding(Type ^ type, System::Windows::Input::CommandBinding ^ commandBinding);
public static void RegisterClassCommandBinding (Type type, System.Windows.Input.CommandBinding commandBinding);
static member RegisterClassCommandBinding : Type * System.Windows.Input.CommandBinding -> unit
Public Shared Sub RegisterClassCommandBinding (type As Type, commandBinding As CommandBinding)

参数

type
Type

用来注册 commandBinding 的类。

commandBinding
CommandBinding

要注册的命令绑定。

例外

typecommandBindingnull

注解

此方法使 与 CommandBinding 类相关联,而不是与类的实例相关联。

适用于