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.

MediaStreamSamplePropertySet class

Applies to Windows and Windows Phone

Contains properties for the MediaStreamSample.

Syntax


public sealed class MediaStreamSamplePropertySet : IDictionary<Guid, Object>,
    IEnumerable<KeyValuePair>

Attributes

[DualApiPartition()]
[MarshalingBehavior(Agile)]
[Version(0x06030000)]

Members

The MediaStreamSamplePropertySet class has these types of members:

Methods

The MediaStreamSamplePropertySet 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 MediaStreamSamplePropertySet.
Add(KeyValuePair) [C#, VB]Adds a new key-value pair to the MediaStreamSamplePropertySet.
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 MediaStreamSamplePropertySet.
ContainsKey [C#, VB]Returns a value that indicates whether a specified key exists in the MediaStreamSamplePropertySet.
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]Gets an immutable view of the property set.
HasKey [C++, JavaScript]Indicates if the specified key exists in the property set.
Insert [C++, JavaScript]Adds the specified key and value 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 MediaStreamSamplePropertySet.
Remove(KeyValuePair) [C#, VB]Removes a specific key-value pair from the MediaStreamSamplePropertySet.
TryGetValue [C#, VB]Returns a value that indicates whether a specified key exists in the MediaStreamSamplePropertySet. If an item with that key exists, the item is retrieved as an out parameter.

 

Properties

The MediaStreamSamplePropertySet 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 MediaStreamSamplePropertySet.

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 MediaStreamSamplePropertySet.

 

Remarks

See the MediaStreamSource Sample for an example of using Media Stream Source in a Windows Store app.

Enumerating the collection in C# or Microsoft Visual Basic

You can iterate through a MediaStreamSamplePropertySet object in C# or Microsoft Visual Basic. In many cases, such as using foreach syntax, the compiler does this casting for you and you won't need to cast to IEnumerable explicitly. If you do need to cast explicitly, for example if you want to call GetEnumerator, cast the collection object to IEnumerable<T> with a KeyValuePair of Guid and Object as the constraint.

Requirements

Minimum supported client

Windows 8.1 [Windows Store apps, desktop apps]

Minimum supported server

Windows Server 2012 R2 [Windows Store apps, desktop apps]

Minimum supported phone

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

Namespace

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

Metadata

Windows.winmd

See also

Object
IMap(Guid, Object)
IIterable(IKeyValuePair)
ExtendedProperties
MediaStreamSource Sample

 

 

Show:
© 2014 Microsoft