FunctionExpression.JScriptFunctionExpression Methode

Definition

Erstellt ein neues Funktionsobjekt mit den angegebenen Informationen.

Diese API unterstützt die Produktinfrastruktur und ist nicht für die direkte Verwendung aus Ihrem Code gedacht.

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

Parameter

handle
RuntimeTypeHandle

Ein Handle für den Typ der Funktion.

name
String

Der Name der Funktion.

method_name
String

Der Name der Funktion.

formal_params
String[]

Die Parameter der Funktion.

fields
JSLocalField[]

Die Felder der Funktion.

must_save_stack_locals
Boolean

true um lokale Stapelvariablen zu speichern. Dies ist wichtig für eine geschachtelte Funktion, die auf eine der lokalen Variablen oder für eine eval Anweisung zugreift.

hasArgumentsObject
Boolean

true wenn die Funktion über ein Parameterarray verfügt.

text
String

Der Text der Funktionsdeklaration.

engine
VsaEngine

Ein Verweis auf das Skriptmodul.

Gibt zurück

Ein neues Funktionsobjekt.

Gilt für: