通过


你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

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