ApplicationDataContainerSettings.Insert(String, Object) Méthode

Définition

Insère ou remplace un paramètre d’application.

public:
 virtual bool Insert(Platform::String ^ key, Platform::Object ^ value) = IMap<Platform::String ^, Platform::Object ^>::Insert;
bool Insert(winrt::hstring const& key, IInspectable const& value);
public bool Insert(string key, object value);
function insert(key, value)
Public Function Insert (key As String, value As Object) As Boolean

Paramètres

key
String

Platform::String

winrt::hstring

Clé du paramètre à insérer ou à remplacer.

value
Object

Platform::Object

IInspectable

Valeur de paramètre.

Retours

Boolean

bool

True si un élément avec la clé spécifiée est un élément existant et a été remplacé ; sinon, false.

Implémente

S’applique à