Dela via


MediaPropertySet.Insert(Guid, Object) Method

Definition

Adds an item to the property set.

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

Parameters

key
Guid

Platform::Guid

winrt::guid

The key of the item to insert.

value
Object

Platform::Object

IInspectable

The value of the item to insert.

Returns

Boolean

bool

True if the method replaced a value that already existed for the key; false if this is a new key.

Implements

Applies to