共用方式為


IXamlType.AddToMap(Object, Object, Object) 方法

定義

將專案加入至自訂地圖類型。

public:
 void AddToMap(Platform::Object ^ instance, Platform::Object ^ key, Platform::Object ^ value);
void AddToMap(IInspectable const& instance, IInspectable const& key, IInspectable const& value);
public void AddToMap(object instance, object key, object value);
function addToMap(instance, key, value)
Public Sub AddToMap (instance As Object, key As Object, value As Object)

參數

instance
Object

Platform::Object

IInspectable

要設定對應專案的型別實例。

key
Object

Platform::Object

IInspectable

要加入之對應專案的索引鍵。

value
Object

Platform::Object

IInspectable

要加入的對應專案值。

適用於