DynamicJsonArray Class
Represents a series of values as a JavaScript-like array by using the dynamic capabilities of the Dynamic Language Runtime (DLR).
Inheritance Hierarchy
System.Object
System.Dynamic.DynamicObject
System.Web.Helpers.DynamicJsonArray
Namespace: System.Web.Helpers
Assembly: System.Web.Helpers (in System.Web.Helpers.dll)
Syntax
'Declaration
Public Class DynamicJsonArray _
Inherits DynamicObject _
Implements IEnumerable(Of Object), IEnumerable
'Usage
Dim instance As DynamicJsonArray
public class DynamicJsonArray : DynamicObject,
IEnumerable<Object>, IEnumerable
public ref class DynamicJsonArray : public DynamicObject,
IEnumerable<Object^>, IEnumerable
type DynamicJsonArray =
class
inherit DynamicObject
interface IEnumerable<Object>
interface IEnumerable
end
public class DynamicJsonArray extends DynamicObject implements IEnumerable<Object>, IEnumerable
The DynamicJsonArray type exposes the following members.
Constructors
Name | Description | |
---|---|---|
DynamicJsonArray | Initializes a new instance of the DynamicJsonArray class using the specified array element values. |
Top
Properties
Name | Description | |
---|---|---|
Item | Returns the value at the specified index in the DynamicJsonArray instance. | |
Length | Returns the number of elements in the DynamicJsonArray instance. |
Top
Methods
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetDynamicMemberNames | (Inherited from DynamicObject.) | |
GetEnumerator | Returns an enumerator that can be used to iterate through the elements of the DynamicJsonArray instance. | |
GetHashCode | (Inherited from Object.) | |
GetMetaObject | (Inherited from DynamicObject.) | |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
ToString | (Inherited from Object.) | |
TryBinaryOperation | (Inherited from DynamicObject.) | |
TryConvert | Converts the DynamicJsonArray instance to a compatible type. (Overrides DynamicObject.TryConvert(ConvertBinder, Object%).) | |
TryCreateInstance | (Inherited from DynamicObject.) | |
TryDeleteIndex | (Inherited from DynamicObject.) | |
TryDeleteMember | (Inherited from DynamicObject.) | |
TryGetIndex | (Inherited from DynamicObject.) | |
TryGetMember | Tests the DynamicJsonArray instance for dynamic members (which are not supported) in a way that does not cause an exception to be thrown. (Overrides DynamicObject.TryGetMember(GetMemberBinder, Object%).) | |
TryInvoke | (Inherited from DynamicObject.) | |
TryInvokeMember | (Inherited from DynamicObject.) | |
TrySetIndex | (Inherited from DynamicObject.) | |
TrySetMember | (Inherited from DynamicObject.) | |
TryUnaryOperation | (Inherited from DynamicObject.) |
Top
Operators
Name | Description | |
---|---|---|
Implicit(DynamicJsonArray to Object[]) | Converts a DynamicJsonArray instance to an array of objects. | |
Implicit(DynamicJsonArray to Array) | Converts a DynamicJsonArray instance to an array of objects. |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
IEnumerable<Object>.GetEnumerator | Returns an enumerator that can be used to iterate through a collection. |
Top
Remarks
This class represents a helper, which is a component that simplifies web programming in ASP.NET Web Pages. You can use the DynamicJsonArray class to interact with arrays that represent JSON data as if it were native to the host language.
The DynamicJsonArray class lets you get and set element values on a JavaScript-like array and to add new elements to the array, while using the familiar indexing and member-access syntax of the host language.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.