DynamicJsonObject Class
Represents a collection of values as a JavaScript-like object by using the capabilities of the Dynamic Language Runtime.
Inheritance Hierarchy
System.Object
System.Dynamic.DynamicObject
System.Web.Helpers.DynamicJsonObject
Namespace: System.Web.Helpers
Assembly: System.Web.Helpers (in System.Web.Helpers.dll)
Syntax
'Declaration
Public Class DynamicJsonObject _
Inherits DynamicObject
'Usage
Dim instance As DynamicJsonObject
public class DynamicJsonObject : DynamicObject
public ref class DynamicJsonObject : public DynamicObject
type DynamicJsonObject =
class
inherit DynamicObject
end
public class DynamicJsonObject extends DynamicObject
The DynamicJsonObject type exposes the following members.
Constructors
Name | Description | |
---|---|---|
DynamicJsonObject | Initializes a new instance of the DynamicJsonObject class using the specified field values. |
Top
Methods
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetDynamicMemberNames | Returns a list that contains the name of all dynamic members (JSON fields) of the DynamicJsonObject instance. (Overrides DynamicObject.GetDynamicMemberNames().) | |
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 DynamicJsonObject instance to a compatible type. (Overrides DynamicObject.TryConvert(ConvertBinder, Object%).) | |
TryCreateInstance | (Inherited from DynamicObject.) | |
TryDeleteIndex | (Inherited from DynamicObject.) | |
TryDeleteMember | (Inherited from DynamicObject.) | |
TryGetIndex | Gets the value of a DynamicJsonObject field using the specified index. (Overrides DynamicObject.TryGetIndex(GetIndexBinder, Object[], Object%).) | |
TryGetMember | Gets the value of a DynamicJsonObject field using the specified name. (Overrides DynamicObject.TryGetMember(GetMemberBinder, Object%).) | |
TryInvoke | (Inherited from DynamicObject.) | |
TryInvokeMember | (Inherited from DynamicObject.) | |
TrySetIndex | Sets the value of a DynamicJsonObject field using the specified index. (Overrides DynamicObject.TrySetIndex(SetIndexBinder, Object[], Object).) | |
TrySetMember | Sets the value of a DynamicJsonObject field using the specified name. (Overrides DynamicObject.TrySetMember(SetMemberBinder, Object).) | |
TryUnaryOperation | (Inherited from DynamicObject.) |
Top
Remarks
This class represents a helper, which is a component that simplifies web programming in ASP.NET Web Pages. You can use the DynamicJsonObject class to interact with .NET Framework objects as you do with JavaScript objects.
The DynamicJsonObject class makes it possible to get and set property values (JSON fields) of JavaScript-like objects, as well as to dynamically add properties, 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.