This topic has not yet been rated Rate this topic

JSObject Class

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

Represents an object in JScript. This class belongs to the objects and functions category.

System.Object
  Microsoft.JScript.ScriptObject
    Microsoft.JScript.JSObject
      More...

Namespace:  Microsoft.JScript
Assembly:  Microsoft.JScript (in Microsoft.JScript.dll)
public class JSObject : ScriptObject, IEnumerable, 
	IExpando, IReflect

The JSObject type exposes the following members.

  Name Description
Public method JSObject Initializes a new instance of the JSObject class.
Top
  Name Description
Public property Item(Double) Gets or sets a member of the script object that is designated by the specified Double index value. (Inherited from ScriptObject.)
Public property Item(Int32) Gets or sets a member of the script object that is designated by the specified Int32 index value. (Inherited from ScriptObject.)
Public property 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.)
Public property Item(String) Gets or sets a member of the script object that is designated by the specified name. (Inherited from ScriptObject.)
Public property UnderlyingSystemType Gets the type of the script object. (Inherited from ScriptObject.)
Top
  Name Description
Public method AddField Adds the specified field to the object.
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetField Gets a field that has the specified name. (Inherited from ScriptObject.)
Public method GetFields Gets an array of FieldInfo objects that correspond to all fields of the current script object. (Inherited from ScriptObject.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetMember Gets an array of MemberInfo objects that correspond to all members that match the specified name. (Overrides ScriptObject.GetMember(String, BindingFlags).)
Public method GetMembers Gets an array of MemberInfo objects that correspond to all members of the current script object. (Overrides ScriptObject.GetMembers(BindingFlags).)
Public method GetMethod(String, BindingFlags) Gets a method that has the specified name. (Inherited from ScriptObject.)
Public method GetMethod(String, BindingFlags, Binder, Type(), ParameterModifier()) Gets a method that has the specified name by using the specified selection criteria. (Inherited from ScriptObject.)
Public method GetMethods Gets an array of MethodInfo objects that correspond to all methods of the current script object. (Inherited from ScriptObject.)
Public method GetParent Gets a reference to the parent object. (Inherited from ScriptObject.)
Public method GetProperties Gets an array of PropertyInfo objects that correspond to all properties of the current script object. (Inherited from ScriptObject.)
Public method GetProperty(String, BindingFlags) Gets a property that has the specified name. (Inherited from ScriptObject.)
Public method GetProperty(String, BindingFlags, Binder, Type, Type(), ParameterModifier()) Gets a property that has the specified name by using the specified selection criteria. (Inherited from ScriptObject.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method InvokeMember Invokes the specified member. (Inherited from ScriptObject.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method SetMemberValue2 Sets the value of a field that was dynamically added to the object and stored in field_table.
Public method ToString Returns a string that represents the current object. (Overrides Object.ToString.)
Top
  Name Description
Public Extension Method AsParallel Enables parallelization of a query. (Defined by ParallelEnumerable.)
Public Extension Method AsQueryable Converts an IEnumerable to an IQueryable. (Defined by Queryable.)
Public Extension Method Cast(Of TResult) Casts the elements of an IEnumerable to the specified type. (Defined by Enumerable.)
Public Extension Method OfType(Of TResult) Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.)
Top
  Name Description
Public field engine Stores a reference to the scripting engine. (Inherited from ScriptObject.)
Protected field field_table Stores a list of fields that are dynamically added and removed from the object.
Protected field parent Stores a reference to the parent object. (Inherited from ScriptObject.)
Top
  Name Description
Explicit interface implemetation Private method IEnumerable.GetEnumerator Returns an enumerator that iterates through the members of the object.
Explicit interface implemetation Private method IExpando.AddMethod Adds the specified method to the object. IExpando.AddMethod is not implemented in JScript.
Explicit interface implemetation Private method IExpando.AddProperty Adds the specified property to the object. This method is not implemented in JScript.
Explicit interface implemetation Private method IExpando.RemoveMember Removes the specified member from the object.
Top

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ