ResourceDictionary.Insert(Object, Object) ResourceDictionary.Insert(Object, Object) ResourceDictionary.Insert(Object, Object) ResourceDictionary.Insert(Object, Object) Method

Definition

Adds a new entry to the ResourceDictionary.

public : Platform::Boolean Insert(Platform::Object key, Platform::Object value)
bool Insert(winrt::Windows::Foundation::IInspectable key, winrt::Windows::Foundation::IInspectable value) const;
public bool Insert(Object key, Object value)
Public Function Insert(key As Object, value As Object) As bool

Parameters

key
Object Object

The object key for the resource to insert.

value
Object Object

The object value for the resource to insert.

Returns

bool bool

true if calling the method replaced a value that already existed for the key; false if calling the method defined a new key.

Remarks

Note

The equivalent Microsoft .NET API is Add.

See also