語言

Utf8JsonReaderManager 結構

定義

能在 Utf8JsonReader.

[System.Runtime.CompilerServices.CompilerFeatureRequired("RefStructs")]
[System.Runtime.CompilerServices.IsByRefLike]
[System.Runtime.CompilerServices.Nullable(0)]
public ref struct Utf8JsonReaderManager
[<System.Runtime.CompilerServices.CompilerFeatureRequired("RefStructs")>]
[<System.Runtime.CompilerServices.IsByRefLike>]
[<System.Runtime.CompilerServices.Nullable(0)>]
type Utf8JsonReaderManager = struct
Public Structure Utf8JsonReaderManager
繼承
Utf8JsonReaderManager
屬性

備註

消費者應呼叫 MoveNext() 前往 JSON 文件中的下一個令牌,這可能需要從串流讀取更多資料並在 中建立新 Utf8JsonReader 實例 CurrentReader。

建構函式

名稱 Description
Utf8JsonReaderManager(JsonReaderData, IDiagnosticsLogger<DbLoggerCategory.Query>)

建立一個新 Utf8JsonReaderManager 實例,從 JSON 文件中擷取的位置開始讀取 JsonReaderData

欄位

名稱 Description
CurrentReader

這組 Utf8JsonReader 代幣會被消耗到下一個代幣。

Data

追蹤狀態及底層的 UTF8 位元組串流或緩衝區。

屬性

名稱 Description
QueryLogger

記錄器用於記錄讀寫 JSON 值時發生的事件,或 null 當無法記錄時發生的事件。

方法

名稱 Description
CaptureState()

呼叫以擷取此 Utf8JsonReaderManager 狀態到關聯 JsonReaderData 文件,以便之後能在 JSON 文件中同一位置建立新的 Utf8JsonReaderManager 檔案。

MoveNext()

移至下一個標記,這可能涉及從串流中讀取更多資料並在 中建立一個新Utf8JsonReader實例。CurrentReader

Skip()

跳過目前 JSON 標記的子節點,這可能需要從串流讀取更多資料並在 中建立新 Utf8JsonReader 實例 CurrentReader。

適用於