This documentation is archived and is not being maintained.
ArrayPrototype Class
Visual Studio 2010
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Provides static methods and properties for ArrayObject objects. All methods of this class are called by passing in a reference to the object that is requesting access to the method. This class belongs to the built-in object model category.
System::Object
Microsoft.JScript::ScriptObject
Microsoft.JScript::JSObject
Microsoft.JScript::ArrayObject
Microsoft.JScript::ArrayPrototype
Microsoft.JScript::LenientArrayPrototype
Microsoft.JScript::ScriptObject
Microsoft.JScript::JSObject
Microsoft.JScript::ArrayObject
Microsoft.JScript::ArrayPrototype
Microsoft.JScript::LenientArrayPrototype
Assembly: Microsoft.JScript (in Microsoft.JScript.dll)
The ArrayPrototype type exposes the following members.
| Name | Description | |
|---|---|---|
![]() ![]() | constructor | Gets a reference to a prototype-based object that is using this prototype. |
![]() | 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[array<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.) |
![]() | length | Gets or sets the length of the array. (Inherited from ArrayObject.) |
![]() | UnderlyingSystemType | Gets the type of the script object. (Inherited from ScriptObject.) |
| Name | Description | |
|---|---|---|
![]() | AddField | Adds the specified field to the object. (Inherited from JSObject.) |
![]() ![]() | concat | Concatenates objects or arrays to the end of the specified object or array. |
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetField | Gets a field that has the specified name. (Inherited from ScriptObject.) |
![]() | GetFields | Gets an array of FieldInfo objects that correspond to all fields of the current script object. (Inherited from ScriptObject.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetMember | Gets an array of MemberInfo objects that correspond to all members that match the specified name. (Inherited from JSObject.) |
![]() | GetMembers | Gets an array of MemberInfo objects that correspond to all members of the current script object. (Inherited from JSObject.) |
![]() | GetMethod(String, BindingFlags) | Gets a method that has the specified name. (Inherited from ScriptObject.) |
![]() | GetMethod(String, BindingFlags, Binder, array<Type>, array<ParameterModifier>) | Gets a method that has the specified name by using the specified selection criteria. (Inherited from ScriptObject.) |
![]() | GetMethods | 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 | 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, array<Type>, array<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 | Invokes the specified member. (Inherited from ScriptObject.) |
![]() ![]() | join | Concatenates the elements of the specified array into a string. The elements are separated by the specified separator. |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() ![]() | pop | Removes the last element from the specified array and returns it. |
![]() ![]() | push | Adds new elements to the end of the specified array. |
![]() ![]() | reverse | Reverses the elements of the specified array. |
![]() | SetMemberValue2 | Sets the value of a field that was dynamically added to the object and stored in field_table. (Inherited from JSObject.) |
![]() ![]() | shift | Removes the first element from the specified array and returns it. Shifts the remaining elements to the previous positions. |
![]() ![]() | slice | Creates a new array that contains the specified consecutive elements from the specified array. |
![]() ![]() | sort | Sorts the elements of the specified array by using the specified function to compare the elements. |
![]() ![]() | splice | Adds and removes elements from an array at the specified position in the array. You can add elements, remove elements, or both. |
![]() | SpliceSlowly | Adds elements to and removes elements from an array, at the specified position in the array. You can add elements, remove elements, or both. (Inherited from ArrayObject.) |
![]() ![]() | toLocaleString | Creates a string representation of the specified object that concatenates the elements and separates them with a ListSeparator and a space. |
![]() ![]() | toString | Creates a string representation of the specified object that concatenates the elements and separates them with a comma. |
![]() | ToString | Returns a string that represents the current object. (Inherited from JSObject.) |
![]() ![]() | unshift | Adds new elements to the start of the specified array. Shifts the existing elements to the next positions. |
| Name | Description | |
|---|---|---|
![]() | 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. (Inherited from JSObject.) |
![]() | parent | Stores a reference to the parent object. (Inherited from ScriptObject.) |
| Name | Description | |
|---|---|---|
![]() ![]() | IEnumerable::GetEnumerator | Returns an enumerator that iterates through the members of the object. (Inherited from JSObject.) |
![]() ![]() | IExpando::AddMethod | Adds the specified method to the object. IExpando::AddMethod is not implemented in JScript. (Inherited from JSObject.) |
![]() ![]() | IExpando::AddProperty | Adds the specified property to the object. This method is not implemented in JScript. (Inherited from JSObject.) |
![]() ![]() | IExpando::RemoveMember | Removes the specified member from the object. (Inherited from JSObject.) |
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.
Show:
