Click or drag to resize

JScriptEngineExecuteCommand Method

Executes script code as a command.

Namespace: Microsoft.ClearScript.Windows.Core
Assembly: ClearScript.Windows.Core (in ClearScript.Windows.Core.dll) Version: 7.4.5
Syntax
public override string ExecuteCommand(
	string command
)

Parameters

command  String
The script command to execute.

Return Value

String
The command output.

Implements

IScriptEngineExecuteCommand(String)
IScriptEngineExecuteCommand(String)
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.

The JScriptEngine version of this method attempts to use toString to convert the return value.

See Also