Click or drag to resize
DigitalRuneConsoleCommand Constructor (String, String, ActionString)
Initializes a new instance of the ConsoleCommand class with the given properties.

Namespace: DigitalRune.Game.UI.Consoles
Assembly: DigitalRune.Game.UI (in DigitalRune.Game.UI.dll) Version: 1.8.0.0 (1.8.0.14553)
Syntax
public ConsoleCommand(
	string name,
	string description,
	Action<string[]> callback
)

Parameters

name
Type: SystemString
The name.
description
Type: SystemString
The description.
callback
Type: SystemActionString
The callback method that handles the command (see Execute).
Exceptions
ExceptionCondition
ArgumentNullExceptionname or callback is .
ArgumentExceptionname is an empty string.
See Also