DynamicJsonObject.TrySetIndex(SetIndexBinder, Object[], Object) Method

Definition

Sets the value of a DynamicJsonObject field using the specified index.

public override bool TrySetIndex (System.Dynamic.SetIndexBinder binder, object[] indexes, object value);
override this.TrySetIndex : System.Dynamic.SetIndexBinder * obj[] * obj -> bool
Public Overrides Function TrySetIndex (binder As SetIndexBinder, indexes As Object(), value As Object) As Boolean

Parameters

binder
SetIndexBinder

Provides information about the indexed set operation.

indexes
Object[]

An array that contains a single object that indexes the field by name. The object must be convertible to a string that specifies the name of the JSON field to return. If multiple indexes are specified, no field is changed or added.

value
Object

The value to set the field to.

Returns

true in all cases.

Applies to