Closure Closure Closure Closure Class

Definition

Represents a closure function. This class belongs to the objects and functions category.

This API supports the product infrastructure and is not intended to be used directly from your code.

public ref class Closure sealed : Microsoft::JScript::ScriptFunction
public sealed class Closure : Microsoft.JScript.ScriptFunction
type Closure = class
    inherit ScriptFunction
Public NotInheritable Class Closure
Inherits ScriptFunction
Inheritance

Constructors

Closure(FunctionObject) Closure(FunctionObject) Closure(FunctionObject) Closure(FunctionObject)

Initializes a new instance of the Closure class.

Fields

arguments arguments arguments arguments

The arguments to use for the function.

caller caller caller caller

The calling scope information from the stack frame.

engine engine engine engine

Stores a reference to the scripting engine.

(Inherited from ScriptObject)
field_table field_table field_table field_table

Stores a list of fields that are dynamically added and removed from the object.

(Inherited from JSObject)
ilength ilength ilength ilength

Stores the number of elements that are in the args parameter of the CreateInstance(Object[]) method.

(Inherited from ScriptFunction)
parent parent parent parent

Stores a reference to the parent object.

(Inherited from ScriptObject)

Methods

AddField(String) AddField(String) AddField(String) AddField(String)

Adds the specified field to the object.

(Inherited from JSObject)
CreateInstance(Object[]) CreateInstance(Object[]) CreateInstance(Object[]) CreateInstance(Object[])

Creates an instance of the prototype-based object, passing in the specified arguments.

(Inherited from ScriptFunction)
Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetField(String, BindingFlags) GetField(String, BindingFlags) GetField(String, BindingFlags) GetField(String, BindingFlags)

Gets a field that has the specified name.

(Inherited from ScriptObject)
GetFields(BindingFlags) GetFields(BindingFlags) GetFields(BindingFlags) GetFields(BindingFlags)

Gets an array of FieldInfo objects that correspond to all fields of the current script object.

(Inherited from ScriptObject)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetMember(String, BindingFlags) GetMember(String, BindingFlags) GetMember(String, BindingFlags) GetMember(String, BindingFlags)

Gets an array of MemberInfo objects that correspond to all members that match the specified name.

(Inherited from JSObject)
GetMembers(BindingFlags) GetMembers(BindingFlags) GetMembers(BindingFlags) GetMembers(BindingFlags)

Gets an array of MemberInfo objects that correspond to all members of the current script object.

(Inherited from JSObject)
GetMethod(String, BindingFlags) GetMethod(String, BindingFlags) GetMethod(String, BindingFlags) GetMethod(String, BindingFlags)

Gets a method that has the specified name.

(Inherited from ScriptObject)
GetMethod(String, BindingFlags, Binder, Type[], ParameterModifier[]) GetMethod(String, BindingFlags, Binder, Type[], ParameterModifier[]) GetMethod(String, BindingFlags, Binder, Type[], ParameterModifier[]) GetMethod(String, BindingFlags, Binder, Type[], ParameterModifier[])

Gets a method that has the specified name by using the specified selection criteria.

(Inherited from ScriptObject)
GetMethods(BindingFlags) GetMethods(BindingFlags) GetMethods(BindingFlags) GetMethods(BindingFlags)

Gets an array of MethodInfo objects that correspond to all methods of the current script object.

(Inherited from ScriptObject)
GetParent() GetParent() GetParent() GetParent()

Gets a reference to the parent object.

(Inherited from ScriptObject)
GetProperties(BindingFlags) GetProperties(BindingFlags) GetProperties(BindingFlags) GetProperties(BindingFlags)

Gets an array of PropertyInfo objects that correspond to all properties of the current script object.

(Inherited from ScriptObject)
GetProperty(String, BindingFlags) GetProperty(String, BindingFlags) GetProperty(String, BindingFlags) GetProperty(String, BindingFlags)

Gets a property that has the specified name.

(Inherited from ScriptObject)
GetProperty(String, BindingFlags, Binder, Type, Type[], ParameterModifier[]) GetProperty(String, BindingFlags, Binder, Type, Type[], ParameterModifier[]) GetProperty(String, BindingFlags, Binder, Type, Type[], ParameterModifier[]) GetProperty(String, BindingFlags, Binder, Type, Type[], ParameterModifier[])

Gets a property that has the specified name by using the specified selection criteria.

(Inherited from ScriptObject)
GetPrototypeForConstructedObject() GetPrototypeForConstructedObject() GetPrototypeForConstructedObject() GetPrototypeForConstructedObject()

Gets the prototype object for this constructor function.

(Inherited from ScriptFunction)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
Invoke(Object, Object[]) Invoke(Object, Object[]) Invoke(Object, Object[]) Invoke(Object, Object[])

Invokes a method of the prototype-based object, passing in the specified arguments.

(Inherited from ScriptFunction)
InvokeMember(String, BindingFlags, Binder, Object, Object[], ParameterModifier[], CultureInfo, String[]) InvokeMember(String, BindingFlags, Binder, Object, Object[], ParameterModifier[], CultureInfo, String[]) InvokeMember(String, BindingFlags, Binder, Object, Object[], ParameterModifier[], CultureInfo, String[]) InvokeMember(String, BindingFlags, Binder, Object, Object[], ParameterModifier[], CultureInfo, String[])

Invokes the specified member.

(Inherited from ScriptFunction)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
SetMemberValue2(String, Object) SetMemberValue2(String, Object) SetMemberValue2(String, Object) SetMemberValue2(String, Object)

Sets the value of a field that was dynamically added to the object and stored in field_table.

(Inherited from JSObject)
ToString() ToString() ToString() ToString()

Creates a string representation of the function, such as the name of the function or the context.

Explicit Interface Implementations

IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator()

Returns an enumerator that iterates through the members of the object.

(Inherited from JSObject)
IExpando.AddMethod(String, Delegate) IExpando.AddMethod(String, Delegate) IExpando.AddMethod(String, Delegate) IExpando.AddMethod(String, Delegate)

Adds the specified method to the object. IExpando.AddMethod(String, Delegate) is not implemented in JScript.

(Inherited from JSObject)
IExpando.AddProperty(String) IExpando.AddProperty(String) IExpando.AddProperty(String) IExpando.AddProperty(String)

Adds the specified property to the object. This method is not implemented in JScript.

(Inherited from JSObject)
IExpando.RemoveMember(MemberInfo) IExpando.RemoveMember(MemberInfo) IExpando.RemoveMember(MemberInfo) IExpando.RemoveMember(MemberInfo)

Removes the specified member from the object.

(Inherited from JSObject)

Properties

Item[Double] Item[Double] Item[Double] Item[Double]

Gets or sets a member of the script object that is designated by the specified Double index value.

(Inherited from ScriptObject)
Item[Int32] Item[Int32] Item[Int32] Item[Int32]

Gets or sets a member of the script object that is designated by the specified Int32 index value.

(Inherited from ScriptObject)
Item[Object[]] Item[Object[]] Item[Object[]] Item[Object[]]

Gets or sets a member of the script object that is designated by the specified name, Double index value, or Int32 index value.

(Inherited from ScriptObject)
Item[String] Item[String] Item[String] Item[String]

Gets or sets a member of the script object that is designated by the specified name.

(Inherited from ScriptObject)
length length length length

Gets or sets the number of elements that are in the args parameter of the CreateInstance(Object[]) method.

(Inherited from ScriptFunction)
prototype prototype prototype prototype

Gets or sets the prototype object for this constructor function.

(Inherited from ScriptFunction)
UnderlyingSystemType UnderlyingSystemType UnderlyingSystemType UnderlyingSystemType

Gets the type of the script object.

(Inherited from ScriptObject)

Extension Methods

Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable)

Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable)

Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable)

Enables parallelization of a query.

AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable)

Converts an IEnumerable to an IQueryable.

Applies to

See also