Udostępnij za pośrednictwem


JsonMetadataServices.CreateArrayInfo<TElement> Metoda

Definicja

Tworzy metadane serializacji dla tablicy.

public:
generic <typename TElement>
 static System::Text::Json::Serialization::Metadata::JsonTypeInfo<cli::array <TElement> ^> ^ CreateArrayInfo(System::Text::Json::JsonSerializerOptions ^ options, System::Text::Json::Serialization::Metadata::JsonCollectionInfoValues<cli::array <TElement> ^> ^ collectionInfo);
public static System.Text.Json.Serialization.Metadata.JsonTypeInfo<TElement[]> CreateArrayInfo<TElement>(System.Text.Json.JsonSerializerOptions options, System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<TElement[]> collectionInfo);
static member CreateArrayInfo : System.Text.Json.JsonSerializerOptions * System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<'Element[]> -> System.Text.Json.Serialization.Metadata.JsonTypeInfo<'Element[]>
Public Shared Function CreateArrayInfo(Of TElement) (options As JsonSerializerOptions, collectionInfo As JsonCollectionInfoValues(Of TElement())) As JsonTypeInfo(Of TElement())

Parametry typu

TElement

Ogólna definicja typu elementu.

Parametry

options
JsonSerializerOptions

Opcje serializacji i deserializacji do użycia.

collectionInfo
JsonCollectionInfoValues<TElement[]>

Udostępnia metadane serializacji dotyczące typu kolekcji.

Zwraca

JsonTypeInfo<TElement[]>

Metadane serializacji dla danego typu.

Uwagi

Ten interfejs API jest używany przez dane wyjściowe generatora źródłowego System.Text.Json i nie powinien być wywoływany bezpośrednio.

Dotyczy