MockLuisLoader.Load(JToken, JsonSerializer, Type) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The method that loads the JToken object to a requested type.
public object Load (Newtonsoft.Json.Linq.JToken obj, Newtonsoft.Json.JsonSerializer serializer, Type type);
abstract member Load : Newtonsoft.Json.Linq.JToken * Newtonsoft.Json.JsonSerializer * Type -> obj
override this.Load : Newtonsoft.Json.Linq.JToken * Newtonsoft.Json.JsonSerializer * Type -> obj
Public Function Load (obj As JToken, serializer As JsonSerializer, type As Type) As Object
Parameters
- obj
- Newtonsoft.Json.Linq.JToken
The JToken object to deserialize.
- serializer
- Newtonsoft.Json.JsonSerializer
The Newtonsoft.Json.JsonSerializer that will be used when creating the object.
- type
- Type
The object type that the token will be deserialized to.
Returns
The new object created from the JToken value.