Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

MediaPropertySet class

Applies to Windows and Windows Phone

Represents a set of media properties.

Syntax


public ref class MediaPropertySet sealed : IMap<Guid, Object>,
    IIterable<IKeyValuePair>

Attributes

[DualApiPartition()]
[MarshalingBehavior(Agile)]
[Threading(Both)]
[Version(0x06020000)]

Members

The MediaPropertySet class has these types of members:

Constructors

The MediaPropertySet class has these constructors.

ConstructorDescription
MediaPropertySet Creates an instance for MediaPropertySet.

 

Methods

The MediaPropertySet class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

MethodDescription
Add(Guid) [C#, VB]Adds an item to the MediaPropertySet.
Add(KeyValuePair) [C#, VB]Adds a new key-value pair to the MediaPropertySet.
Clear Removes all items from the property set.
Contains [C#, VB]Returns a value that indicates whether a specified key-value pair exists in the MediaPropertySet.
ContainsKey [C#, VB]Returns a value that indicates whether a specified key exists in the MediaPropertySet.
CopyTo [C#, VB]Copies the elements of the collection to an array, starting at a particular array index.
First [C++, JavaScript]Returns an iterator to enumerate the items in the property set.
GetView [C++, JavaScript]Returns an immutable view of the property set.
HasKey [C++, JavaScript]Indicates whether the property set has an item with the specified key.
Insert [C++, JavaScript]Adds an item to the property set.
Lookup [C++, JavaScript]Retrieves the value for the specified key.
Remove [C++, JavaScript]Removes an item from the property set.
Remove(Guid) [C#, VB]Removes a specific item from the MediaPropertySet.
Remove(KeyValuePair) [C#, VB]Removes a specific key-value pair from the MediaPropertySet.
TryGetValue [C#, VB]Returns a value that indicates whether a specified key exists in the MediaPropertySet. If an item with that key exists, the item is retrieved as an out parameter.

 

Properties

The MediaPropertySet class has these properties.

PropertyAccess typeDescription

Count [C#, VB]

Read-onlyGets the number of elements contained in the collection.

IsReadOnly [C#, VB]

Read-onlyGets a value indicating whether the dictionary is read-only.

Item [C#, VB]

Read/writeGets or sets the element value at the specified key index.

Keys [C#, VB]

Read-onlyGets an ICollection object containing the keys of the MediaPropertySet.

Size [C++, JavaScript]

Read-onlyGets the number of items contained in the property set.

Values [C#, VB]

Read-onlyGets an ICollection object containing the values of the MediaPropertySet .

 

Remarks

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

Collection member lists

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

Examples

The following example creates an instance of the AudioEncodingProperties class. The example then uses the Properties property to get an instance of the MediaPropertySet class.


var encodingProperties = new Windows.Media.MediaProperties.AudioEncodingProperties();
var props = encodingProperties.properties;


Requirements

Minimum supported client

Windows 8 [Windows Store apps, desktop apps]

Minimum supported server

Windows Server 2012 [Windows Store apps, desktop apps]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Media.MediaProperties
Windows::Media::MediaProperties [C++]

Metadata

Windows.winmd

 

 

Show:
© 2014 Microsoft