Share via


IJsonLoadObserver.OnAfterLoadToken<T> Method

Definition

Notifies IConverterObserver instances after type-loading a Newtonsoft.Json.Linq.JToken into the provided instance of T.

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

Type Parameters

T

Type of the concrete object that was built.

Parameters

context
SourceContext

Source scope.

range
SourceRange

Source Range.

token
Newtonsoft.Json.Linq.JToken

Token used to build the object.

obj
T

Object that was built using the token.

result
T

Output parameter for observer to provide its result to the converter.

Returns

True if the observer provides a result and False if not.

Applies to