MediaPropertySet MediaPropertySet MediaPropertySet MediaPropertySet Class

Definition

Represents a set of media properties.

public sealed class MediaPropertySetpublic sealed class MediaPropertySetPublic NotInheritable Class MediaPropertySetpublic sealed class 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()

Creates an instance for MediaPropertySet.

public MediaPropertySet()public New()Public Sub New()public MediaPropertySet()
Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Properties

Size Size Size Size

Gets the number of items contained in the property set.

public uint Size { get; }public uint Size { get; }Public ReadOnly Property Size As uintpublic uint Size { get; }
Value
uint uint uint uint

The number of items in the property set.

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Methods

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

Removes all items from the property set.

public void Clear()public void Clear()Public Function Clear() As voidpublic void Clear()
Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

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

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

public IIterator<IKeyValuePair<Guid, object>> First()public IIterator<IKeyValuePair<Guid, object>> First()Public Function First() As IIterator( Of IKeyValuePairGuid, object )public IIterator<IKeyValuePair<Guid, object>> First()
Returns

The iterator. The current position of the iterator is index 0, or the end of the property set if the property set is empty.

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

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

Returns an immutable view of the property set.

public IMapView<Guid, object> GetView()public IMapView<Guid, object> GetView()Public Function GetView() As IMapView( Of Guid, object )public IMapView<Guid, object> GetView()
Returns

The immutable view.

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

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

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

public bool HasKey(Guid key)public bool HasKey(Guid key)Public Function HasKey(key As Guid) As boolpublic bool HasKey(Guid key)
Parameters
key
System.Guid System.Guid System.Guid System.Guid

The key.

Returns
bool bool bool bool

True if the property set has an item with the specified key; otherwise, false.

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

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

Adds an item to the property set.

public bool Insert(Guid key, Object value)public bool Insert(Guid key, Object value)Public Function Insert(key As Guid, value As Object) As boolpublic bool Insert(Guid key, Object value)
Parameters
key
System.Guid System.Guid System.Guid System.Guid

The key of the item to insert.

value
System.Object System.Object System.Object System.Object

The value of the item to insert.

Returns
bool bool bool bool

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

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

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

Retrieves the value for the specified key.

public object Lookup(Guid key)public object Lookup(Guid key)Public Function Lookup(key As Guid) As objectpublic object Lookup(Guid key)
Parameters
key
System.Guid System.Guid System.Guid System.Guid

The key.

Returns
object object object object

The value, if an item with the specified key exists. Use the HasKey method to determine whether the key exists.

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

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

Removes an item from the property set.

public void Remove(Guid key)public void Remove(Guid key)Public Function Remove(key As Guid) As voidpublic void Remove(Guid key)
Parameters
key
System.Guid System.Guid System.Guid System.Guid

The key of the item to remove.

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

For the C# and Microsoft Visual Basic version of the Remove(Guid) method, see Remove(Guid).