Delen via


MediaPropertySet Class

Definition

Represents a set of media properties.

public ref class MediaPropertySet sealed : IIterable<IKeyValuePair<Platform::Guid, Platform::Object ^> ^>, IMap<Platform::Guid, Platform::Object ^>
/// [Windows.Foundation.Metadata.Activatable(65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.HasVariant]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class MediaPropertySet final : IIterable<IKeyValuePair<winrt::guid, IInspectable const&>>, IMap<winrt::guid, IInspectable const&>
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.HasVariant]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
class MediaPropertySet final : IIterable<IKeyValuePair<winrt::guid, IInspectable const&>>, IMap<winrt::guid, IInspectable const&>
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.HasVariant]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class MediaPropertySet : IDictionary<Guid,object>, IEnumerable<KeyValuePair<Guid,object>>
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.HasVariant]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
public sealed class MediaPropertySet : IDictionary<Guid,object>, IEnumerable<KeyValuePair<Guid,object>>
function MediaPropertySet()
Public NotInheritable Class MediaPropertySet
Implements IDictionary(Of Guid, Object), IEnumerable(Of KeyValuePair(Of Guid, Object))
Inheritance
Object Platform::Object IInspectable MediaPropertySet
Attributes
Implements
IMap<Guid,Object> IDictionary<Guid,Object> IMap<Platform::Guid,Platform::Object> IMap<winrt::guid,IInspectable> IIterable<IKeyValuePair<K,V>> IEnumerable<KeyValuePair<K,V>> IIterable<IKeyValuePair<Guid,Object>> IEnumerable<KeyValuePair<Guid,Object>> IIterable<IKeyValuePair<Platform::Guid,Platform::Object>> IIterable<IKeyValuePair<winrt::guid,IInspectable>>

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

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

Creates an instance for MediaPropertySet.

Properties

Size

Gets the number of items contained in the property set.

Methods

Clear()

Removes all items from the property set.

First()

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

GetView()

Returns an immutable view of the property set.

HasKey(Guid)

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

Insert(Guid, Object)

Adds an item to the property set.

Lookup(Guid)

Retrieves the value for the specified key.

Remove(Guid)

Removes an item from the property set.

Applies to