DynamicJsonObject.TryGetIndex(GetIndexBinder, Object[], Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the value of a DynamicJsonObject field using the specified index.
public override bool TryGetIndex(System.Dynamic.GetIndexBinder binder, object[] indexes, out object result);
override this.TryGetIndex : System.Dynamic.GetIndexBinder * obj[] * obj -> bool
Public Overrides Function TryGetIndex (binder As GetIndexBinder, indexes As Object(), ByRef result As Object) As Boolean
Parameters
- binder
- GetIndexBinder
Provides information about the indexed get 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, result
contains null when this method returns.
- result
- Object
When this method returns, contains the value of the indexed field, or null if the get operation was unsuccessful. This parameter is passed uninitialized.
Returns
true in all cases.