Udostępnij za pośrednictwem


JsonStringEnumConverter.CreateConverter(Type, JsonSerializerOptions) Metoda

Definicja

Tworzy konwerter dla określonego typu.

public:
 override System::Text::Json::Serialization::JsonConverter ^ CreateConverter(Type ^ typeToConvert, System::Text::Json::JsonSerializerOptions ^ options);
public override System.Text.Json.Serialization.JsonConverter CreateConverter (Type typeToConvert, System.Text.Json.JsonSerializerOptions options);
public override sealed System.Text.Json.Serialization.JsonConverter CreateConverter (Type typeToConvert, System.Text.Json.JsonSerializerOptions options);
override this.CreateConverter : Type * System.Text.Json.JsonSerializerOptions -> System.Text.Json.Serialization.JsonConverter
Public Overrides Function CreateConverter (typeToConvert As Type, options As JsonSerializerOptions) As JsonConverter
Public Overrides NotOverridable Function CreateConverter (typeToConvert As Type, options As JsonSerializerOptions) As JsonConverter

Parametry

typeToConvert
Type

Typ obsługiwany przez konwerter.

options
JsonSerializerOptions

Opcje serializacji do użycia.

Zwraca

Konwerter, dla którego T jest zgodny z programem typeToConvert.

Dotyczy