Eval.JScriptEvaluate Eval.JScriptEvaluate Eval.JScriptEvaluate Eval.JScriptEvaluate Method

Definition

Evaluates JScript code.

Overloads

JScriptEvaluate(Object, VsaEngine) JScriptEvaluate(Object, VsaEngine) JScriptEvaluate(Object, VsaEngine) JScriptEvaluate(Object, VsaEngine)

Evaluates the specified JScript code by using the specified engine.

JScriptEvaluate(Object, Object, VsaEngine) JScriptEvaluate(Object, Object, VsaEngine) JScriptEvaluate(Object, Object, VsaEngine) JScriptEvaluate(Object, Object, VsaEngine)

Evaluates the specified JScript code by using the specified engine and safety option.

JScriptEvaluate(Object, VsaEngine) JScriptEvaluate(Object, VsaEngine) JScriptEvaluate(Object, VsaEngine) JScriptEvaluate(Object, VsaEngine)

Evaluates the specified JScript code by using the specified engine.

public:
 static System::Object ^ JScriptEvaluate(System::Object ^ source, Microsoft::JScript::Vsa::VsaEngine ^ engine);
public static object JScriptEvaluate (object source, Microsoft.JScript.Vsa.VsaEngine engine);
static member JScriptEvaluate : obj * Microsoft.JScript.Vsa.VsaEngine -> obj
Public Shared Function JScriptEvaluate (source As Object, engine As VsaEngine) As Object

Parameters

source
Object Object Object Object

The code to evaluate.

engine
VsaEngine VsaEngine VsaEngine VsaEngine

A reference to the scripting engine to use to evaluate source.

Returns

The result of the evaluation. If source is not a string, return value is source.

JScriptEvaluate(Object, Object, VsaEngine) JScriptEvaluate(Object, Object, VsaEngine) JScriptEvaluate(Object, Object, VsaEngine) JScriptEvaluate(Object, Object, VsaEngine)

Evaluates the specified JScript code by using the specified engine and safety option.

public:
 static System::Object ^ JScriptEvaluate(System::Object ^ source, System::Object ^ unsafeOption, Microsoft::JScript::Vsa::VsaEngine ^ engine);
public static object JScriptEvaluate (object source, object unsafeOption, Microsoft.JScript.Vsa.VsaEngine engine);
static member JScriptEvaluate : obj * obj * Microsoft.JScript.Vsa.VsaEngine -> obj
Public Shared Function JScriptEvaluate (source As Object, unsafeOption As Object, engine As VsaEngine) As Object

Parameters

source
Object Object Object Object

The code to evaluate.

unsafeOption
Object Object Object Object

The string literal unsafe to enable unsafe evaluation; otherwise, false.

engine
VsaEngine VsaEngine VsaEngine VsaEngine

A reference to the scripting engine to use to evaluate source.

Returns

The result of the evaluation. If source is not a string, return value is source.

Applies to