MediaStreamSamplePropertySet.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

实现

适用于