ResourceDictionary.Insert(Object, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds a new entry to the ResourceDictionary.
public:
virtual bool Insert(Platform::Object ^ key, Platform::Object ^ value) = IMap<Platform::Object ^, Platform::Object ^>::Insert;
bool Insert(IInspectable const& key, IInspectable const& value);
public bool Insert(object key, object value);
function insert(key, value)
Public Function Insert (key As Object, value As Object) As Boolean
Parameters
- key
-
Object
Platform::Object
IInspectable
The object key for the resource to insert.
- value
-
Object
Platform::Object
IInspectable
The object value for the resource to insert.
Returns
Boolean
bool
true if calling the method replaced a value that already existed for the key; false if calling the method defined a new key.
Implements
Remarks
Note
The equivalent Microsoft .NET API is Add.