語言

IJsonLoadObserver.OnBeforeLoadToken<T> 方法

定義

在載入 Newtonsoft.Json.Linq.JToken. 類型前通知IConverterObserver實例。

public bool OnBeforeLoadToken<T>(Microsoft.Bot.Builder.Dialogs.Debugging.SourceContext context, Microsoft.Bot.Builder.Dialogs.Debugging.SourceRange range, Newtonsoft.Json.Linq.JToken token, out T result) where T : class;
abstract member OnBeforeLoadToken : Microsoft.Bot.Builder.Dialogs.Debugging.SourceContext * Microsoft.Bot.Builder.Dialogs.Debugging.SourceRange * Newtonsoft.Json.Linq.JToken * 'T -> bool (requires 'T : null)
Public Function OnBeforeLoadToken(Of T As Class) (context As SourceContext, range As SourceRange, token As JToken, ByRef result As T) As Boolean

類型參數

T

要建造的混凝土物體類型。

參數

context
SourceContext

來源範圍。

range
SourceRange

來源範圍。

token
Newtonsoft.Json.Linq.JToken

用來建造物件的代幣。

result
T

觀察者用以將結果提供給轉換器的輸出參數。

傳回

若觀察者提供結果,則為真;若不,則為假。

適用於