Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

RoutedCommand Constructor (String^, Type^)

 

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

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

public:
RoutedCommand(
	String^ name,
	Type^ ownerType
)

Parameters

name
Type: System::String^

Declared name for serialization.

ownerType
Type: System::Type^

The type which is registering the command.

Exception Condition
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:
© 2017 Microsoft