MediaPropertySet.Insert(Guid, Object) 方法

定义

将项添加到属性集。

public:
 virtual bool Insert(Platform::Guid key, Platform::Object ^ value) = IMap<Platform::Guid, Platform::Object ^>::Insert;
bool Insert(winrt::guid const& key, IInspectable const& value);
public bool Insert(Guid key, object value);
function insert(key, value)
Public Function Insert (key As Guid, value As Object) As Boolean

参数

key
Guid

Platform::Guid

winrt::guid

要插入的项的键。

value
Object

Platform::Object

IInspectable

要插入的项的值。

返回

Boolean

bool

如果方法替换了键已存在的值,则其值为 True;如果这是新密钥,则为 false。

实现

适用于