RoutedUICommand Constructor (String, 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 RoutedUICommand class, using the specified descriptive text, declared name, owner type, and input gestures.

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

Public Sub New (
	text As String,
	name As String,
	ownerType As Type,
	inputGestures As InputGestureCollection
)

Parameters

text
Type: System.String

Descriptive text for the command.

name
Type: System.String

The declared name of the command for serialization.

ownerType
Type: System.Type

The type that is registering the command.

inputGestures
Type: System.Windows.Input.InputGestureCollection

A collection of gestures to associate with the command.

Exception Condition
ArgumentNullException

text is null.

ArgumentNullException

name is null.

ArgumentException

The length of name is zero.

ArgumentException

ownerType is null.

.NET Framework
Available since 3.0
Return to top
Show: