AdditionalPropertiesDictionary<TValue> Classe
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Fournit un dictionnaire utilisé comme dictionnaire AdditionalProperties sur Microsoft.Extensions.AI objets.
generic <typename TValue>
public ref class AdditionalPropertiesDictionary : System::Collections::Generic::ICollection<System::Collections::Generic::KeyValuePair<System::String ^, TValue>>, System::Collections::Generic::IDictionary<System::String ^, TValue>, System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String ^, TValue>>, System::Collections::Generic::IReadOnlyCollection<System::Collections::Generic::KeyValuePair<System::String ^, TValue>>, System::Collections::Generic::IReadOnlyDictionary<System::String ^, TValue>
public class AdditionalPropertiesDictionary<TValue> : System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<string,TValue>>, System.Collections.Generic.IDictionary<string,TValue>, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,TValue>>, System.Collections.Generic.IReadOnlyCollection<System.Collections.Generic.KeyValuePair<string,TValue>>, System.Collections.Generic.IReadOnlyDictionary<string,TValue>
type AdditionalPropertiesDictionary<'Value> = class
interface IDictionary<string, 'Value>
interface ICollection<KeyValuePair<string, 'Value>>
interface seq<KeyValuePair<string, 'Value>>
interface IEnumerable
interface IReadOnlyDictionary<string, 'Value>
interface IReadOnlyCollection<KeyValuePair<string, 'Value>>
Public Class AdditionalPropertiesDictionary(Of TValue)
Implements ICollection(Of KeyValuePair(Of String, TValue)), IDictionary(Of String, TValue), IEnumerable(Of KeyValuePair(Of String, TValue)), IReadOnlyCollection(Of KeyValuePair(Of String, TValue)), IReadOnlyDictionary(Of String, TValue)
Paramètres de type
- TValue
Type des valeurs dans le dictionnaire.
- Héritage
-
AdditionalPropertiesDictionary<TValue>
- Dérivé
- Implémente
-
ICollection<KeyValuePair<String,TValue>> ICollection<KeyValuePair<TKey,TValue>> IDictionary<String,TValue> IEnumerable<KeyValuePair<String,TValue>> IEnumerable<KeyValuePair<TKey,TValue>> IEnumerable<T> IReadOnlyCollection<KeyValuePair<String,TValue>> IReadOnlyCollection<KeyValuePair<TKey,TValue>> IReadOnlyDictionary<String,TValue> IEnumerable
Constructeurs
| Nom | Description |
|---|---|
| AdditionalPropertiesDictionary<TValue>() |
Initialise une nouvelle instance de la classe AdditionalPropertiesDictionary<TValue>. |
| AdditionalPropertiesDictionary<TValue>(IDictionary<String,TValue>) |
Initialise une nouvelle instance de la classe AdditionalPropertiesDictionary<TValue>. |
| AdditionalPropertiesDictionary<TValue>(IEnumerable<KeyValuePair<String,TValue>>) |
Initialise une nouvelle instance de la classe AdditionalPropertiesDictionary<TValue>. |
Propriétés
| Nom | Description |
|---|---|
| Count |
Obtient le nombre d’éléments contenus dans le ICollection<T>. |
| Item[String] |
Obtient ou définit l’élément avec la clé spécifiée. |
| Keys |
Obtient une ICollection<T> valeur contenant les clés du IDictionary<TKey,TValue>. |
| Values |
Obtient une ICollection<T> valeur contenant les valeurs dans le IDictionary<TKey,TValue>. |
Méthodes
| Nom | Description |
|---|---|
| Add(String, TValue) |
Ajoute un élément avec la clé et la valeur fournies à l’élément IDictionary<TKey,TValue>. |
| Clear() |
Supprime tous les éléments du ICollection<T>. |
| Clone() |
Crée un clone peu profond du dictionnaire de propriétés. |
| ContainsKey(String) |
Détermine si le IDictionary<TKey,TValue> contient un élément avec la clé spécifiée. |
| GetEnumerator() |
Retourne un énumérateur qui itère au sein du AdditionalPropertiesDictionary<TValue>. |
| Remove(String) |
Supprime l’élément avec la clé spécifiée de l'IDictionary<TKey,TValue>. |
| TryAdd(String, TValue) |
Tente d’ajouter la clé et la valeur spécifiées au dictionnaire. |
| TryGetValue(String, TValue) |
Obtient la valeur associée à la clé spécifiée. |
| TryGetValue<T>(String, T) |
Tente d’extraire une valeur typée du dictionnaire. |