Share via


ToolCommand Constructor (String)

Initializes a new instance of the ToolCommand class with the specified command name.

Namespace:  Microsoft.Windows.Design.Interaction
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Syntax

'Declaration
Public Sub New ( _
    commandName As String _
)
public ToolCommand(
    string commandName
)
public:
ToolCommand(
    String^ commandName
)
new : 
        commandName:string -> ToolCommand
public function ToolCommand(
    commandName : String
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

commandName is nulla null reference (Nothing in Visual Basic).

Remarks

The command name is not used by the ToolCommand class, but is a useful debugging aid.

.NET Framework Security

See Also

Reference

ToolCommand Class

ToolCommand Overload

Microsoft.Windows.Design.Interaction Namespace

Other Resources

Tool Architecture

Understanding WPF Designer Extensibility