Share via


DynamicJsonObject Constructor

Initializes a new instance of the DynamicJsonObject class using the specified field values.

Namespace:  System.Web.Helpers
Assembly:  System.Web.Helpers (in System.Web.Helpers.dll)

Syntax

'Declaration
Public Sub New ( _
    values As IDictionary(Of String, Object) _
)
'Usage
Dim values As IDictionary(Of String, Object)

Dim instance As New DynamicJsonObject(values)
public DynamicJsonObject(
    IDictionary<string, Object> values
)
public:
DynamicJsonObject(
    IDictionary<String^, Object^>^ values
)
new : 
        values:IDictionary<string, Object> -> DynamicJsonObject
public function DynamicJsonObject(
    values : IDictionary<String, Object>
)

Parameters

Remarks

The values parameter provides a dictionary of property names and their values that are added to the DynamicJsonObject instance using the capabilities of the Dynamic Language Runtime. After the values are added to the DynamicJsonObject instance, they can be accessed through the member-access operator (.) or through the index operator.

See Also

Reference

DynamicJsonObject Class

System.Web.Helpers Namespace