JsonLoadObserverWrapper.OnBeforeLoadToken<T> 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
实例的 Newtonsoft.Json.JsonConverter 观察程序。 处理有关对象加载生命周期的通知,包括截获和提供转换器要考虑的备用值的功能。
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)
override this.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