Lingua

IJsonLoadObserver.OnBeforeLoadToken<T> Metodo

Definizione

notifica IConverterObserver le istanze prima del type-loading di un 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

Parametri di tipo

T

Tipo di oggetto in cemento da costruire.

Parametri

context
SourceContext

Scopo della fonte.

range
SourceRange

Intervallo di origine.

token
Newtonsoft.Json.Linq.JToken

Token da usare per costruire l'oggetto.

result
T

Parametro di output per l'osservatore che fornisce il suo risultato al convertitore.

Valori restituiti

Vero se l'osservatore fornisce un risultato e Falso se no.

Si applica a