JsonSerializerOptions.GetConverter(Type) 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.
Returns the converter for the specified type.
public:
System::Text::Json::Serialization::JsonConverter ^ GetConverter(Type ^ typeToConvert);
public System.Text.Json.Serialization.JsonConverter GetConverter(Type typeToConvert);
member this.GetConverter : Type -> System.Text.Json.Serialization.JsonConverter
Public Function GetConverter (typeToConvert As Type) As JsonConverter
- typeToConvert
- Type
The type to return a converter for.
The first converter that supports the given type.
The configured JsonConverter for typeToConvert
returned an invalid converter.
There is no compatible JsonConverter for typeToConvert
or its serializable members.
For more information, see How to write custom converters for JSON serialization (marshalling) in .NET.
Produkt | Versioner |
---|---|
.NET | Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10 |
.NET Standard | 2.0 (package-provided) |
Feedback om .NET
.NET är ett öppen källkod projekt. Välj en länk för att ge feedback: