JsonTypeInfo.CreateJsonTypeInfo Yöntem

Tanım

Aşırı Yüklemeler

CreateJsonTypeInfo(Type, JsonSerializerOptions)

Boş JsonTypeInfo bir örnek oluşturur.

CreateJsonTypeInfo<T>(JsonSerializerOptions)

Boş JsonTypeInfo<T> bir örnek oluşturur.

CreateJsonTypeInfo(Type, JsonSerializerOptions)

Kaynak:
JsonTypeInfo.cs
Kaynak:
JsonTypeInfo.cs
Kaynak:
JsonTypeInfo.cs

Boş JsonTypeInfo bir örnek oluşturur.

public:
 static System::Text::Json::Serialization::Metadata::JsonTypeInfo ^ CreateJsonTypeInfo(Type ^ type, System::Text::Json::JsonSerializerOptions ^ options);
public static System.Text.Json.Serialization.Metadata.JsonTypeInfo CreateJsonTypeInfo (Type type, System.Text.Json.JsonSerializerOptions options);
static member CreateJsonTypeInfo : Type * System.Text.Json.JsonSerializerOptions -> System.Text.Json.Serialization.Metadata.JsonTypeInfo
Public Shared Function CreateJsonTypeInfo (type As Type, options As JsonSerializerOptions) As JsonTypeInfo

Parametreler

type
Type

Sözleşme meta verilerinin belirtildiği tür.

options
JsonSerializerOptions

JsonSerializerOptions Meta verilerin ilişkili olduğu örnek.

Döndürülenler

Boş JsonTypeInfo bir örnek.

Özel durumlar

type veya options şeklindedir null.

type serileştirme için kullanılamaz.

Açıklamalar

DöndürülenJsonTypeInfo, türünden veya yerleşik dönüştürücülerden Converters çözümlenecek özelliği dışında Converter boş olacaktır. aracılığıyla tür bildiriminde belirtilen JsonConverterAttribute dönüştürücüler bu yöntemle çözümlenmez.

Çözümlenen dönüştürücü, örneğinde değiştirilebilen JsonTypeInfo meta veri türünü kısıtlayan değerini Kindetkiler.

Şunlara uygulanır

CreateJsonTypeInfo<T>(JsonSerializerOptions)

Kaynak:
JsonTypeInfo.cs
Kaynak:
JsonTypeInfo.cs
Kaynak:
JsonTypeInfo.cs

Boş JsonTypeInfo<T> bir örnek oluşturur.

public:
generic <typename T>
 static System::Text::Json::Serialization::Metadata::JsonTypeInfo<T> ^ CreateJsonTypeInfo(System::Text::Json::JsonSerializerOptions ^ options);
public static System.Text.Json.Serialization.Metadata.JsonTypeInfo<T> CreateJsonTypeInfo<T> (System.Text.Json.JsonSerializerOptions options);
static member CreateJsonTypeInfo : System.Text.Json.JsonSerializerOptions -> System.Text.Json.Serialization.Metadata.JsonTypeInfo<'T>
Public Shared Function CreateJsonTypeInfo(Of T) (options As JsonSerializerOptions) As JsonTypeInfo(Of T)

Tür Parametreleri

T

Sözleşme meta verilerinin belirtildiği tür.

Parametreler

options
JsonSerializerOptions

JsonSerializerOptions Meta verilerin ilişkili olduğu örnek.

Döndürülenler

Boş JsonTypeInfo<T> bir örnek.

Özel durumlar

options, null değeridir.

Açıklamalar

Döndürülen <bkz. cref="T:System.Text.Json.Serialization.Metadata.JsonTypeInfo'1> boş olacaktır; özelliği dışında Converter , türün veya yerleşik dönüştürücülerinden çözümlenecektir Converters . aracılığıyla tür bildiriminde belirtilen JsonConverterAttribute dönüştürücüler bu yöntemle çözümlenmez.

Çözümlenen dönüştürücü, örneğinde değiştirilebilen JsonTypeInfo meta veri türünü kısıtlayan değerini Kindetkiler.

Şunlara uygulanır