ResourceDictionary.Insert method

Applies to Windows and Windows Phone

Adds a new entry to the ResourceDictionary.

Syntax


public:
bool Insert(
  Object^ key, 
  Object^ value
)

Parameters

key

Type: Object

The object key for the resource to insert.

value

Type: Object

The object value for the resource to insert.

Return value

Type: Boolean

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.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows::UI::Xaml

Metadata

Windows.winmd

See also

ResourceDictionary
Add
ResourceDictionary and XAML resource references

 

 

Show:
© 2014 Microsoft. All rights reserved.