PayloadSerializer.ConvertFromJsonObject<T>(Object) 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.
Converts the JSON object using the serializer.
public abstract T ConvertFromJsonObject<T> (object jsonObjectToConvert);
abstract member ConvertFromJsonObject : obj -> 'T
Public MustOverride Function ConvertFromJsonObject(Of T) (jsonObjectToConvert As Object) As T
Type Parameters
- T
The type to convert to.
Parameters
- jsonObjectToConvert
- Object
The object to convert.
Returns
T
A converted object
Remarks
This class is used to attempt to convert from the native serializer type (for example, JObject or JsonElement) to the desired type. When implementing this, be aware of what type the serializer will use for anonymous types.
Applies to
Collabora con noi su GitHub
L'origine di questo contenuto è disponibile in GitHub, in cui è anche possibile creare ed esaminare i problemi e le richieste pull. Per ulteriori informazioni, vedere la guida per i collaboratori.