StringMap.Insert(String, String) Méthode
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.
Insère ou remplace un élément dans la carte.
public:
virtual bool Insert(Platform::String ^ key, Platform::String ^ value) = IMap<Platform::String ^, Platform::String ^>::Insert;
bool Insert(winrt::hstring const& key, winrt::hstring const& value);
public bool Insert(string key, string value);
function insert(key, value)
Public Function Insert (key As String, value As String) As Boolean
Paramètres
- key
-
String
Platform::String
winrt::hstring
Clé associée à l’élément à insérer.
- value
-
String
Platform::String
winrt::hstring
Élément à insérer.
Retours
bool
True si un élément avec la clé spécifiée est un élément existant qui a été remplacé ; sinon, false.
Implémente
S’applique à
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour