Share via


JsonPatch.EnumerateArray(ReadOnlySpan<Byte>) Method

Definition

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.

Applies to