次の方法で共有


FunctionExpression.JScriptFunctionExpression メソッド

定義

指定された情報を使用して新しい関数オブジェクトを作成します。

この API は製品インフラストラクチャをサポートします。コードから直接使用するものではありません。

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

パラメーター

handle
RuntimeTypeHandle

関数の型へのハンドル。

name
String

関数の名前。

method_name
String

関数の名前。

formal_params
String[]

関数のパラメーター。

fields
JSLocalField[]

関数のフィールド。

must_save_stack_locals
Boolean

ローカル スタック変数を保存する場合は true。 これは、ローカル変数の 1 つにアクセスする入れ子になった関数や eval ステートメントの場合に重要です。

hasArgumentsObject
Boolean

関数でパラメーター配列を使用する場合は true

text
String

関数宣言のテキスト。

engine
VsaEngine

スクリプト エンジンへの参照。

戻り値

新しい関数オブジェクト。

適用対象