MediaPropertySet MediaPropertySet MediaPropertySet MediaPropertySet MediaPropertySet Class

Definition

Represents a set of media properties.

public : sealed class MediaPropertySet : IIterable<IKeyValuePair<Platform::Guid, Platform::Object>>, IMap<Platform::Guid, Platform::Object>
struct winrt::Windows::Media::MediaProperties::MediaPropertySet : IIterable<IKeyValuePair<Platform::Guid, Platform::Object>>, IMap<Platform::Guid, Platform::Object>
public sealed class MediaPropertySet : IEnumerable<KeyValuePair<Guid, Object>>, IDictionary<Guid, Object>
Public NotInheritable Class MediaPropertySet Implements IEnumerable<KeyValuePair<Guid, Object>>, IDictionary<Guid, Object>
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

Item[TKey] Item[TKey] Item[TKey] Item[TKey] Item[TKey]

Gets or sets the element with the specified key.

Keys Keys Keys Keys Keys

Gets an System.Collections.Generic.ICollection`1 containing the keys of the System.Collections.Generic.IDictionary`2.

Size Size Size Size Size

Gets the number of items contained in the property set.

Values Values Values Values Values

Gets an System.Collections.Generic.ICollection`1 containing the values in the System.Collections.Generic.IDictionary`2.

Methods

Add(TKey, TValue) Add(TKey, TValue) Add(TKey, TValue) Add(TKey, TValue) Add(TKey, TValue)

Adds an element with the provided key and value to the System.Collections.Generic.IDictionary`2.

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

Removes all items from the property set.

ContainsKey(TKey) ContainsKey(TKey) ContainsKey(TKey) ContainsKey(TKey) ContainsKey(TKey)

Determines whether the System.Collections.Generic.IDictionary`2 contains an element with the specified key.

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

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

GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()

Returns an enumerator that iterates through the collection.

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(T) Remove(T) Remove(T) Remove(T) Remove(T)

Removes the element with the specified key from the System.Collections.Generic.IDictionary`2.

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

Removes an item from the property set.

TryGetValue(TKey, out TValue) TryGetValue(TKey, out TValue) TryGetValue(TKey, out TValue) TryGetValue(TKey, out TValue) TryGetValue(TKey, out TValue)

Gets the value associated with the specified key.