Class CommandShellCommand
Single shell command
Inheritance
Inherited Members
Namespace: Simplic.CommandShell
Assembly: Simplic.CommandShell.dll
Syntax
public class CommandShellCommand
Constructors
| Improve this Doc View SourceCommandShellCommand(String, CommandShellCommandDelegate, String[])
Create shell command
Declaration
public CommandShellCommand(string commandName, CommandShellCommandDelegate methodDelegate, string[] requiredParameter)
Parameters
Type | Name | Description |
---|---|---|
System.String | commandName | name of the command |
CommandShellCommandDelegate | methodDelegate | Delegate to the command |
System.String[] | requiredParameter | Reqwuired parameter for the command |
CommandShellCommand(String, Object, String, String[])
Create shell command
Declaration
public CommandShellCommand(string commandName, object classInstance, string methodName, string[] requiredParameter)
Parameters
Type | Name | Description |
---|---|---|
System.String | commandName | name of the command |
System.Object | classInstance | Type of the class |
System.String | methodName | Name of the method to invoke |
System.String[] | requiredParameter | Reqwuired parameter for the command |
CommandShellCommand(String, Type, String, String[])
Create shell command
Declaration
public CommandShellCommand(string commandName, Type classType, string methodName, string[] requiredParameter)
Parameters
Type | Name | Description |
---|---|---|
System.String | commandName | name of the command |
System.Type | classType | Type of the class |
System.String | methodName | Name of the method to invoke |
System.String[] | requiredParameter | Reqwuired parameter for the command |
Properties
| Improve this Doc View SourceClassInstance
Instance of a class
Declaration
public object ClassInstance { get; set; }
Property Value
Type | Description |
---|---|
System.Object |
ClassType
Type of the class in which the method will be invoked
Declaration
public Type ClassType { get; set; }
Property Value
Type | Description |
---|---|
System.Type |
CommandName
Name of the command
Declaration
public string CommandName { get; }
Property Value
Type | Description |
---|---|
System.String |
MethodDelegate
Delegate to the method which will be executed with the command
Declaration
public CommandShellCommandDelegate MethodDelegate { get; }
Property Value
Type | Description |
---|---|
CommandShellCommandDelegate |
MethodName
Name of the method which will be invoked
Declaration
public string MethodName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
RequiredParameter
Array of required parameter
Declaration
public string[] RequiredParameter { get; }
Property Value
Type | Description |
---|---|
System.String[] |
Methods
| Improve this Doc View SourceExecute(CommandShellParameter[])
Execute the current command
Declaration
public string Execute(CommandShellParameter[] parameter)
Parameters
Type | Name | Description |
---|---|---|
CommandShellParameter[] | parameter | Parameter |
Returns
Type | Description |
---|---|
System.String | result of the command |
GetHelpText()
Get the help text (command) for the current command
Declaration
public string GetHelpText()
Returns
Type | Description |
---|---|
System.String | Help text as a string |
GetMethodHelpText()
Get the help text (parameter) for the current command
Declaration
public string GetMethodHelpText()
Returns
Type | Description |
---|---|
System.String | Help text as a string |