JSObject Class

Definition

Represents an object in JScript. 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 JSObject : Microsoft::JScript::ScriptObject, System::Collections::IEnumerable, System::Runtime::InteropServices::Expando::IExpando
public class JSObject : Microsoft.JScript.ScriptObject, System.Collections.IEnumerable, System.Runtime.InteropServices.Expando.IExpando
type JSObject = class
    inherit ScriptObject
    interface IEnumerable
    interface IExpando
    interface IReflect
Public Class JSObject
Inherits ScriptObject
Implements IEnumerable, IExpando
Inheritance
JSObject
Derived
Implements

Constructors

JSObject()

Initializes a new instance of the JSObject class.

Fields

engine

Stores a reference to the scripting engine.

(Inherited from ScriptObject)
field_table

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

parent

Stores a reference to the parent object.

(Inherited from ScriptObject)

Properties

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]

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

(Inherited from ScriptObject)
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]

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

(Inherited from ScriptObject)
UnderlyingSystemType

Gets the type of the script object.

(Inherited from ScriptObject)

Methods

AddField(String)

Adds the specified field to the object.

Equals(Object)

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

(Inherited from Object)
GetField(String, BindingFlags)

Gets a field that has the specified name.

(Inherited from ScriptObject)
GetFields(BindingFlags)

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

(Inherited from ScriptObject)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetMember(String, BindingFlags)

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

GetMembers(BindingFlags)

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

GetMethod(String, BindingFlags)

Gets a method that has the specified name.

(Inherited from ScriptObject)
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)

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

(Inherited from ScriptObject)
GetParent()

Gets a reference to the parent object.

(Inherited from ScriptObject)
GetProperties(BindingFlags)

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

(Inherited from ScriptObject)
GetProperty(String, BindingFlags)

Gets a property that has the specified name.

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

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

(Inherited from ScriptObject)
GetType()

Gets the Type of the current instance.

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

Invokes the specified member.

(Inherited from ScriptObject)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
SetMemberValue2(String, Object)

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

ToString()

Returns a string that represents the current object.

Explicit Interface Implementations

IEnumerable.GetEnumerator()

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

IExpando.AddMethod(String, Delegate)

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

IExpando.AddProperty(String)

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

IExpando.RemoveMember(MemberInfo)

Removes the specified member from the object.

Extension Methods

Cast<TResult>(IEnumerable)

Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable)

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

AsParallel(IEnumerable)

Enables parallelization of a query.

AsQueryable(IEnumerable)

Converts an IEnumerable to an IQueryable.

Applies to