ApplicationDataContainerSettings.Insert(String, Object) Method

Definition

Inserts or replaces an application setting.

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

Parameters

key
String

Platform::String

winrt::hstring

The key of the setting to insert or replace.

value
Object

Platform::Object

IInspectable

The setting value.

Returns

Boolean

bool

True if an item with the specified key is an existing item and was replaced; otherwise, false.

Implements

Applies to