SourcePoint.ReadObjectWithSourcePoints<T> 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
讀取物件為 T,並傳回讀取物件的開始/結束點。
public static T ReadObjectWithSourcePoints<T>(Newtonsoft.Json.JsonReader reader, Func<Newtonsoft.Json.JsonReader,T> read, out Microsoft.Bot.Builder.Dialogs.Debugging.SourcePoint start, out Microsoft.Bot.Builder.Dialogs.Debugging.SourcePoint end);
static member ReadObjectWithSourcePoints : Newtonsoft.Json.JsonReader * Func<Newtonsoft.Json.JsonReader, 'T> * SourcePoint * SourcePoint -> 'T
Public Shared Function ReadObjectWithSourcePoints(Of T) (reader As JsonReader, read As Func(Of JsonReader, T), ByRef start As SourcePoint, ByRef end As SourcePoint) As T
類型參數
- T
要還原序列化的 物件類型。
參數
- reader
- Newtonsoft.Json.JsonReader
要從中讀取的讀取器。
- read
- Func<Newtonsoft.Json.JsonReader,T>
在讀取期間要處理的函式。
- start
- SourcePoint
物件的結果起點。
- end
- SourcePoint
物件的結果端點。
傳回
T
還原序列化的物件類型為 T () 。