MediaPropertySet MediaPropertySet MediaPropertySet MediaPropertySet MediaPropertySet Class

Definition

Represents a set of media properties.

public : sealed class MediaPropertySet
struct winrt::Windows::Media::MediaProperties::MediaPropertySet
public sealed class MediaPropertySet
Public NotInheritable Class MediaPropertySet
var mediaPropertySet = new mediaPropertySet();
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

This object is not instantiated directly, it is returned by retrieving one of the following properties:

For information on working with a property set collection, see PropertySet.

Collection member lists

For JavaScript, MediaPropertySet supports using an index to access items.

Constructors

MediaPropertySet() MediaPropertySet() MediaPropertySet() MediaPropertySet() MediaPropertySet()

Creates an instance for MediaPropertySet.

Properties

Size Size Size Size Size

Gets the number of items contained in the property set.

Methods

Clear() Clear() Clear() Clear() Clear()

Removes all items from the property set.

First() First() First() First() First()

Returns an iterator to enumerate the items in the property set.

GetView() GetView() GetView() GetView() GetView()

Returns an immutable view of the property set.

HasKey(Guid) HasKey(Guid) HasKey(Guid) HasKey(Guid) HasKey(Guid)

Indicates whether the property set has an item with the specified key.

Insert(Guid, Object) Insert(Guid, Object) Insert(Guid, Object) Insert(Guid, Object) Insert(Guid, Object)

Adds an item to the property set.

Lookup(Guid) Lookup(Guid) Lookup(Guid) Lookup(Guid) Lookup(Guid)

Retrieves the value for the specified key.

Remove(Guid) Remove(Guid) Remove(Guid) Remove(Guid) Remove(Guid)

Removes an item from the property set.