IScriptEngineExecuteCommand Method |
Executes script code as a command.
Namespace: Microsoft.ClearScriptAssembly: ClearScript.Core (in ClearScript.Core.dll) Version: 7.4.5
Syntax string ExecuteCommand(
string command
)
Function ExecuteCommand (
command As String
) As String
String^ ExecuteCommand(
String^ command
)
abstract ExecuteCommand :
command : string -> string
Parameters
- command String
- The script command to execute.
Return Value
StringThe command output.
Remarks
This method is similar to
Evaluate(String) but optimized for command
consoles. The specified command must be limited to a single expression or statement.
Script engines can override this method to customize command execution as well as the
process of converting the result to a string for console output.
See Also