FunctionExpression.JScriptFunctionExpression Methode

Definition

Erstellt ein neues Funktionsobjekt unter Verwendung der 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[]

Der Felder der Funktion.

must_save_stack_locals
Boolean

true zum Speichern lokaler Stapelvariablen. Dies ist für geschachtelte Funktionen wichtig, die auf einer der zugehörigen lokalen Variablen zugreifen, oder für eval-Anweisungen.

hasArgumentsObject
Boolean

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

text
String

Der Text der Funktionsdeklaration.

engine
VsaEngine

Ein Verweis auf die Skript-Engine.

Gibt zurück

FunctionObject

Ein neues Funktionsobjekt.

Gilt für