语言

IJsonLoadObserver.OnBeforeLoadToken<T> 方法

定义

IConverterObserver在类型加载 Newtonsoft.Json.Linq.JToken.

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

输出参数,供观察者向转换器提供结果。

返回

如果观察者给出结果,则为真;如果没有,则为假。

适用于