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
- values
Type: System.Collections.Generic.IDictionary<String, Object>
A dictionary of property names and values to add to the DynamicJsonObject instance as dynamic members.
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.