RoutedCommand Constructor (String, Type, InputGestureCollection)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Initializes a new instance of the RoutedCommand class with the specified name, owner type, and collection of gestures.

Namespace:   System.Windows.Input
Assembly:  PresentationCore (in PresentationCore.dll)

new : 
        name:string *
        ownerType:Type *
        inputGestures:InputGestureCollection -> RoutedCommand

Parameters

name
Type: System.String

Declared name for serialization.

ownerType
Type: System.Type

The type that is registering the command.

inputGestures
Type: System.Windows.Input.InputGestureCollection

Default input gestures associated with this command.

Exception Condition
ArgumentNullException

name is null.

ArgumentException

the length of name is zero

- or -

ownerType is null.

.NET Framework
Available since 3.0
Return to top
Show: