語言

JsonMetadataServices 類別

定義

提供協助工具來建立及初始化 JSON 可序列化型別的元資料。

public ref class JsonMetadataServices abstract sealed
public static class JsonMetadataServices
type JsonMetadataServices = class
Public Class JsonMetadataServices
繼承
JsonMetadataServices

備註

此 API 是供 System.Text.Json 原始碼產生器的輸出使用。 不應該直接叫來。

屬性

名稱 Description
BFloat16Converter

提供協助工具來建立及初始化 JSON 可序列化型別的元資料。

BooleanConverter

會得到一個能轉換 Boolean 數值的物件。

ByteArrayConverter

會得到一個能轉換位元組陣列值的物件。

ByteConverter

會得到一個能轉換 Byte 數值的物件。

CharConverter

會得到一個能轉換 Char 數值的物件。

DateOnlyConverter

回傳 JsonConverter<T> 一個能轉換 DateOnly 數值的實例。

DateTimeConverter

會得到一個能轉換 DateTime 數值的物件。

DateTimeOffsetConverter

會得到一個能轉換 DateTimeOffset 數值的物件。

Decimal128Converter

提供協助工具來建立及初始化 JSON 可序列化型別的元資料。

Decimal32Converter

提供協助工具來建立及初始化 JSON 可序列化型別的元資料。

Decimal64Converter

提供協助工具來建立及初始化 JSON 可序列化型別的元資料。

DecimalConverter

會得到一個能轉換 Decimal 數值的物件。

DoubleConverter

會得到一個能轉換 Double 數值的物件。

GuidConverter

會得到一個能轉換 Guid 數值的物件。

HalfConverter

回傳 JsonConverter<T> 一個能轉換 Half 數值的實例。

Int128Converter

回傳 JsonConverter<T> 一個能轉換 Int128 數值的實例。

Int16Converter

會得到一個能轉換 Int16 數值的物件。

Int32Converter

會得到一個能轉換 Int32 數值的物件。

Int64Converter

會得到一個能轉換 Int64 數值的物件。

JsonArrayConverter

會得到一個能轉換 JsonArray 數值的物件。

JsonDocumentConverter

回傳 JsonConverter<T> 一個能轉換 JsonDocument 數值的實例。

JsonElementConverter

會用一個 JSON 轉換器來轉換 JsonElement 數值。

JsonNodeConverter

會得到一個能轉換 JsonNode 數值的物件。

JsonObjectConverter

會得到一個能轉換 JsonObject 數值的物件。

JsonValueConverter

會得到一個能轉換 JsonValue 數值的物件。

MemoryByteConverter

回傳 JsonConverter<T> 一個能轉換 Memory<T> 數值的實例。

ObjectConverter

會得到一個能轉換 Object 數值的物件。

ReadOnlyMemoryByteConverter

回傳 JsonConverter<T> 一個能轉換 ReadOnlyMemory<T> 數值的實例。

SByteConverter

會得到一個能轉換 SByte 數值的物件。

SingleConverter

會得到一個能轉換 Single 數值的物件。

StringConverter

會得到一個能轉換 String 數值的物件。

TimeOnlyConverter

回傳 JsonConverter<T> 一個能轉換 TimeOnly 數值的實例。

TimeSpanConverter

會用一個 JSON 轉換器來轉換 TimeSpan 數值。

UInt128Converter

回傳 JsonConverter<T> 一個能轉換 UInt128 數值的實例。

UInt16Converter

會得到一個能轉換 UInt16 數值的物件。

UInt32Converter

會得到一個能轉換 UInt32 數值的物件。

UInt64Converter

會得到一個能轉換 UInt64 數值的物件。

UriConverter

會得到一個能轉換 Uri 數值的物件。

VersionConverter

會得到一個能轉換 Version 數值的物件。

方法

名稱 Description
CreateArrayInfo<TElement>(JsonSerializerOptions, JsonCollectionInfoValues<TElement[]>)

為陣列建立序列化元資料。

CreateConcurrentQueueInfo<TCollection,TElement>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>)

建立可指派到 ConcurrentQueue<T>的類型元資料。

CreateConcurrentStackInfo<TCollection,TElement>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>)

建立可指派到 ConcurrentStack<T>的類型元資料。

CreateDictionaryInfo<TCollection,TKey,TValue>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>)

建立可指派到 Dictionary<TKey,TValue>的類型元資料。

CreateIAsyncEnumerableInfo<TCollection,TElement>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>)

為可指派給 IAsyncEnumerable<T>的類型建立序列化元資料。

CreateICollectionInfo<TCollection,TElement>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>)

建立可指派到 ICollection<T>的類型元資料。

CreateIDictionaryInfo<TCollection,TKey,TValue>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>)

建立可指派到 IDictionary<TKey,TValue>的類型元資料。

CreateIDictionaryInfo<TCollection>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>)

建立可指派到 IDictionary的類型元資料。

CreateIEnumerableInfo<TCollection,TElement>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>)

建立可指派到 IEnumerable<T>的類型元資料。

CreateIEnumerableInfo<TCollection>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>)

建立可指派到 IEnumerable的類型元資料。

CreateIListInfo<TCollection,TElement>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>)

建立可指派到 IList<T>的類型元資料。

CreateIListInfo<TCollection>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>)

建立可指派到 IList的類型元資料。

CreateImmutableDictionaryInfo<TCollection,TKey,TValue>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>, Func<IEnumerable<KeyValuePair<TKey, TValue>>,TCollection>)

建立 的 ImmutableDictionary<TKey,TValue> 元資料及可指派給 IReadOnlyDictionary<TKey,TValue>的類型。

CreateImmutableEnumerableInfo<TCollection,TElement>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>, Func<IEnumerable<TElement>, TCollection>)

為非字典不可變的集合類型建立元資料。

CreateIReadOnlyDictionaryInfo<TCollection,TKey,TValue>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>)

建立可指派到 IReadOnlyDictionary<TKey,TValue>的類型元資料。

CreateIReadOnlySetInfo<TCollection,TElement>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>)

提供協助工具來建立及初始化 JSON 可序列化型別的元資料。

CreateISetInfo<TCollection,TElement>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>)

建立可指派到 ISet<T>的類型元資料。

CreateListInfo<TCollection,TElement>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>)

建立可指派到 List<T>的類型元資料。

CreateMemoryInfo<TElement>(JsonSerializerOptions, JsonCollectionInfoValues<Memory<TElement>>)

建立序列化元資料。Memory<T>

CreateObjectInfo<T>(JsonSerializerOptions, JsonObjectInfoValues<T>)

為複雜類別或結構建立元資料。

CreatePropertyInfo<T>(JsonSerializerOptions, JsonPropertyInfoValues<T>)

為屬性或欄位建立元資料。

CreateQueueInfo<TCollection,TElement>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>)

建立可指派到 Queue<T>的類型元資料。

CreateQueueInfo<TCollection>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>, Action<TCollection,Object>)

建立可指派到 Queue的類型元資料。

CreateReadOnlyMemoryInfo<TElement>(JsonSerializerOptions, JsonCollectionInfoValues<ReadOnlyMemory<TElement>>)

建立序列化元資料。ReadOnlyMemory<T>

CreateStackInfo<TCollection,TElement>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>)

建立可指派到 Stack<T>的類型元資料。

CreateStackInfo<TCollection>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>, Action<TCollection,Object>)

建立可指派到 Stack的類型元資料。

CreateUnionInfo<T>(JsonSerializerOptions, JsonUnionInfoValues<T>)

提供協助工具來建立及初始化 JSON 可序列化型別的元資料。

CreateValueInfo<T>(JsonSerializerOptions, JsonConverter)

用自訂轉換器為原語或型別建立元資料。

GetEnumConverter<T>(JsonSerializerOptions)

建立 JsonConverter<T> 一個可以轉換 T 數值的實例。

GetNullableConverter<T>(JsonSerializerOptions)

建立 JsonConverter<T> 一個可以轉換 T?? 數值的實例。

GetNullableConverter<T>(JsonTypeInfo<T>)

建立 JsonConverter<T> 一個可以轉換 T?? 數值的實例。

GetUnsupportedTypeConverter<T>()

會得到一個類型轉換器,會拋出一個 NotSupportedException。

適用於