Aracılığıyla paylaş


JsonMetadataServices.CreateArrayInfo<TElement> Yöntem

Tanım

Bir dizi için serileştirme meta verileri oluşturur.

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())

Tür Parametreleri

TElement

Öğe türünün genel tanımı.

Parametreler

options
JsonSerializerOptions

Kullanılacak serileştirme ve seri durumdan çıkarma seçenekleri.

collectionInfo
JsonCollectionInfoValues<TElement[]>

Koleksiyon türü hakkında serileştirme meta verileri sağlar.

Döndürülenler

JsonTypeInfo<TElement[]>

Verilen tür için serileştirme meta verileri.

Açıklamalar

Bu API, System.Text.Json kaynak oluşturucusunun çıkışı tarafından kullanılır ve doğrudan çağrılmamalıdır.

Şunlara uygulanır