Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

RoutedUICommand Constructor (String, String, Type)

Initializes a new instance of the RoutedUICommand class, using the specified descriptive text, declared name, and owner type.

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

'Declaration
Public Sub New ( _
	text As String, _
	name As String, _
	ownerType As Type _
)

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.

ExceptionCondition
ArgumentNullException

text is Nothing.

ArgumentNullException

name is Nothing.

ArgumentException

The length of name is zero.

ArgumentException

ownerType is Nothing.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft