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
- commandName
Type: System.String
The name of the command.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.Windows.Design.Interaction Namespace