JsonMetadataServices.CreateQueueInfo Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
| Nombre | Description |
|---|---|
| CreateQueueInfo<TCollection,TElement>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>) |
Crea metadatos para los tipos que se pueden asignar a Queue<T>. |
| CreateQueueInfo<TCollection>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>, Action<TCollection,Object>) |
Crea metadatos para los tipos que se pueden asignar a Queue. |
CreateQueueInfo<TCollection,TElement>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>)
Crea metadatos para los tipos que se pueden asignar a Queue<T>.
public:
generic <typename TCollection, typename TElement>
where TCollection : System::Collections::Generic::Queue<TElement> static System::Text::Json::Serialization::Metadata::JsonTypeInfo<TCollection> ^ CreateQueueInfo(System::Text::Json::JsonSerializerOptions ^ options, System::Text::Json::Serialization::Metadata::JsonCollectionInfoValues<TCollection> ^ collectionInfo);
public static System.Text.Json.Serialization.Metadata.JsonTypeInfo<TCollection> CreateQueueInfo<TCollection,TElement>(System.Text.Json.JsonSerializerOptions options, System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<TCollection> collectionInfo) where TCollection : System.Collections.Generic.Queue<TElement>;
static member CreateQueueInfo : System.Text.Json.JsonSerializerOptions * System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<'Collection (requires 'Collection :> System.Collections.Generic.Queue<'Element>)> -> System.Text.Json.Serialization.Metadata.JsonTypeInfo<'Collection (requires 'Collection :> System.Collections.Generic.Queue<'Element>)> (requires 'Collection :> System.Collections.Generic.Queue<'Element>)
Public Shared Function CreateQueueInfo(Of TCollection As Queue(Of TElement), TElement As Queue(Of TElement)) (options As JsonSerializerOptions, collectionInfo As JsonCollectionInfoValues(Of TCollection)) As JsonTypeInfo(Of TCollection)
Parámetros de tipo
- TCollection
Definición genérica del tipo.
- TElement
Definición genérica del tipo de elemento.
Parámetros
- options
- JsonSerializerOptions
JsonSerializerOptions que se va a usar para la serialización y deserialización.
- collectionInfo
- JsonCollectionInfoValues<TCollection>
Proporciona metadatos de serialización sobre el tipo de colección.
Devoluciones
Metadatos de serialización para el tipo especificado.
Comentarios
Esta API la usa la salida del generador de origen System.Text.Json y no se debe llamar directamente a esta API.
Se aplica a
CreateQueueInfo<TCollection>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>, Action<TCollection,Object>)
Crea metadatos para los tipos que se pueden asignar a Queue.
public:
generic <typename TCollection>
where TCollection : System::Collections::IEnumerable static System::Text::Json::Serialization::Metadata::JsonTypeInfo<TCollection> ^ CreateQueueInfo(System::Text::Json::JsonSerializerOptions ^ options, System::Text::Json::Serialization::Metadata::JsonCollectionInfoValues<TCollection> ^ collectionInfo, Action<TCollection, System::Object ^> ^ addFunc);
public static System.Text.Json.Serialization.Metadata.JsonTypeInfo<TCollection> CreateQueueInfo<TCollection>(System.Text.Json.JsonSerializerOptions options, System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<TCollection> collectionInfo, Action<TCollection,object?> addFunc) where TCollection : System.Collections.IEnumerable;
static member CreateQueueInfo : System.Text.Json.JsonSerializerOptions * System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<'Collection (requires 'Collection :> System.Collections.IEnumerable)> * Action<'Collection, obj (requires 'Collection :> System.Collections.IEnumerable)> -> System.Text.Json.Serialization.Metadata.JsonTypeInfo<'Collection (requires 'Collection :> System.Collections.IEnumerable)> (requires 'Collection :> System.Collections.IEnumerable)
Public Shared Function CreateQueueInfo(Of TCollection As IEnumerable) (options As JsonSerializerOptions, collectionInfo As JsonCollectionInfoValues(Of TCollection), addFunc As Action(Of TCollection, Object)) As JsonTypeInfo(Of TCollection)
Parámetros de tipo
- TCollection
Definición genérica del tipo.
Parámetros
- options
- JsonSerializerOptions
JsonSerializerOptions que se va a usar para la serialización y deserialización.
- collectionInfo
- JsonCollectionInfoValues<TCollection>
Proporciona metadatos de serialización sobre el tipo de colección.
Método para agregar elementos a la colección al usar las rutas de acceso de código del serializador.
Devoluciones
Metadatos de serialización para el tipo especificado.
Comentarios
Esta API la usa la salida del generador de origen System.Text.Json y no se debe llamar directamente a esta API.