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

要添加的映射项的值。

适用于