JsonMetadataServices.CreateValueInfo<T> Method
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.
Creates metadata for a primitive or a type with a custom converter.
public:
generic <typename T>
static System::Text::Json::Serialization::Metadata::JsonTypeInfo<T> ^ CreateValueInfo(System::Text::Json::JsonSerializerOptions ^ options, System::Text::Json::Serialization::JsonConverter ^ converter);
public static System.Text.Json.Serialization.Metadata.JsonTypeInfo<T> CreateValueInfo<T>(System.Text.Json.JsonSerializerOptions options, System.Text.Json.Serialization.JsonConverter converter);
static member CreateValueInfo : System.Text.Json.JsonSerializerOptions * System.Text.Json.Serialization.JsonConverter -> System.Text.Json.Serialization.Metadata.JsonTypeInfo<'T>
Public Shared Function CreateValueInfo(Of T) (options As JsonSerializerOptions, converter As JsonConverter) As JsonTypeInfo(Of T)
- T
The generic type definition.
- options
- JsonSerializerOptions
The JsonSerializerOptions to use for serialization and deserialization.
- converter
- JsonConverter
A JsonTypeInfo<T> instance representing the type.
This API is for use by the output of the System.Text.Json source generator and should not be called directly.
Proizvod | Verzije |
---|---|
.NET | 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10 |
.NET Standard | 2.0 (package-provided) |
.NET povratne informacije
.NET je projekat otvorenog koda. Odaberite vezu za pružanje povratnih informacija: