JsonMetadataServices.GetUnsupportedTypeConverter<T> Method

Definition

Gets a type converter that throws a NotSupportedException.

public static System.Text.Json.Serialization.JsonConverter<T> GetUnsupportedTypeConverter<T> ();

Type Parameters

T

The generic definition for the type.

Returns

A JsonConverter<T> instance that throws NotSupportedException

Remarks

This API is for use by the output of the System.Text.Json source generator and should not be called directly.

Applies to

Produk Versi
.NET 6, 7, 8 (package-provided), 8, 9 (package-provided), 9
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)