FunctionDeclaration.JScriptFunctionDeclaration Method

Definition

Creates a new closure function, 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.Closure JScriptFunctionDeclaration (RuntimeTypeHandle handle, string name, string method_name, string[] formal_parameters, Microsoft.JScript.JSLocalField[] fields, bool must_save_stack_locals, bool hasArgumentsObject, string text, object declaringObject, Microsoft.JScript.Vsa.VsaEngine engine);

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_parameters
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.

declaringObject
Object

Gets the type that declares this method.

engine
VsaEngine

A reference to the scripting engine.

Returns

A new closure function that represents the function declaration.

Applies to

Produto Versões
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also