ResourceDictionary.Insert(Object, Object) 方法

定義

將新專案新增至 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

參數

key
Object

Platform::Object

IInspectable

要插入之資源的物件索引鍵。

value
Object

Platform::Object

IInspectable

要插入之資源的物件值。

傳回

Boolean

bool

如果呼叫 方法取代了索引鍵已存在的值,則為true;如果呼叫 方法已定義新的索引鍵,則為false

實作

備註

注意

對等的 Microsoft .NET API 是 Add

適用於

另請參閱