Click or drag to resize

ScriptEngineExecuteCommand Method

Executes script code as a command.

Namespace:  Microsoft.ClearScript
Assembly:  ClearScript.Core (in ClearScript.Core.dll) Version: 7.3.1
Syntax
public virtual string ExecuteCommand(
	string command
)

Parameters

command
Type: SystemString
The script command to execute.

Return Value

Type: String
The 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