JsonPatch.EnumerateArray(ReadOnlySpan<Byte>) 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.
Returns an enumerator that iterates over the elements of a JSON array at the specified path.
public System.ClientModel.Primitives.JsonPatch.ArrayEnumerator EnumerateArray(ReadOnlySpan<byte> jsonPath);
member this.EnumerateArray : ReadOnlySpan<byte> -> System.ClientModel.Primitives.JsonPatch.ArrayEnumerator
Public Function EnumerateArray (jsonPath As ReadOnlySpan(Of Byte)) As JsonPatch.ArrayEnumerator
Parameters
- jsonPath
- ReadOnlySpan<Byte>
The JSON path pointing at the array.
Returns
An JsonPatch.ArrayEnumerator that yields each array element as ReadOnlyMemory<T> of bytes.
Exceptions
If the jsonPath was not found.
If the value at jsonPath is not a JSON array.