FunctionExpression.JScriptFunctionExpression Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應