FunctionDeclaration.JScriptFunctionDeclaration Method
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 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, System::String ^ name, System::String ^ method_name, cli::array <System::String ^> ^ formal_parameters, cli::array <Microsoft::JScript::JSLocalField ^> ^ fields, bool must_save_stack_locals, bool hasArgumentsObject, System::String ^ text, System::Object ^ declaringObject, Microsoft::JScript::Vsa::VsaEngine ^ engine);
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);
static member JScriptFunctionDeclaration : RuntimeTypeHandle * string * string * string[] * Microsoft.JScript.JSLocalField[] * bool * bool * string * obj * Microsoft.JScript.Vsa.VsaEngine -> Microsoft.JScript.Closure
Public Shared Function JScriptFunctionDeclaration (handle As RuntimeTypeHandle, name As String, method_name As String, formal_parameters As String(), fields As JSLocalField(), must_save_stack_locals As Boolean, hasArgumentsObject As Boolean, text As String, declaringObject As Object, engine As VsaEngine) As Closure
- 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.
A new closure function that represents the function declaration.
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 |
Comentários do .NET
O .NET é um projeto código aberto. Selecione um link para fornecer comentários: