ICrestronConsoleAddNewConsoleCommand(SimplSharpProConsoleCmdFunction, String, String, ConsoleAccessLevelEnum) Method |
Function for the user to add console commands to the system.
Namespace: Crestron.SimplSharpAssembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntaxbool AddNewConsoleCommand(
SimplSharpProConsoleCmdFunction userFunction,
string userCmdName,
string userCmdHelp,
ConsoleAccessLevelEnum userAccess
)
Parameters
- userFunction SimplSharpProConsoleCmdFunction
- Callback function the command will call.
- userCmdName String
- Name of the console command. Spaces are not permitted.
- userCmdHelp String
- Information on the console command.
- userAccess ConsoleAccessLevelEnum
- Authentication level of the command.
Return Value
Booleantrue if the operation succeeds; otherwise, false.
ExceptionsVersion Information
.NET Compact Framework
Supported in: 3.5
See Also