FunctionExpression.JScriptFunctionExpression Method

Definition

Creates a new function object, using the specified information.

This API supports the product infrastructure and is not intended to be used directly from your code.

public:
 static Microsoft::JScript::FunctionObject ^ JScriptFunctionExpression(RuntimeTypeHandle handle, System::String ^ name, System::String ^ method_name, cli::array <System::String ^> ^ formal_params, cli::array <Microsoft::JScript::JSLocalField ^> ^ fields, bool must_save_stack_locals, bool hasArgumentsObject, System::String ^ text, Microsoft::JScript::Vsa::VsaEngine ^ engine);
public static Microsoft.JScript.FunctionObject JScriptFunctionExpression (RuntimeTypeHandle handle, string name, string method_name, string[] formal_params, Microsoft.JScript.JSLocalField[] fields, bool must_save_stack_locals, bool hasArgumentsObject, string text, Microsoft.JScript.Vsa.VsaEngine engine);
static member JScriptFunctionExpression : RuntimeTypeHandle * string * string * string[] * Microsoft.JScript.JSLocalField[] * bool * bool * string * Microsoft.JScript.Vsa.VsaEngine -> Microsoft.JScript.FunctionObject
Public Shared Function JScriptFunctionExpression (handle As RuntimeTypeHandle, name As String, method_name As String, formal_params As String(), fields As JSLocalField(), must_save_stack_locals As Boolean, hasArgumentsObject As Boolean, text As String, engine As VsaEngine) As FunctionObject

Parameters

handle
RuntimeTypeHandle

A handle to the type of the function.

name
String

The name of the function.

method_name
String

The name of the function.

formal_params
String[]

The parameters of the function.

fields
JSLocalField[]

The fields of the function.

must_save_stack_locals
Boolean

true to save local stack variables. This is important for a nested function that accesses one of its local variables, or for an eval statement.

hasArgumentsObject
Boolean

true if the function has a parameter array.

text
String

The text of the function declaration.

engine
VsaEngine

A reference to the scripting engine.

Returns

A new function object.

Applies to