MediaStreamSamplePropertySet MediaStreamSamplePropertySet MediaStreamSamplePropertySet MediaStreamSamplePropertySet MediaStreamSamplePropertySet Class


Contains properties for the MediaStreamSample.

public : sealed class MediaStreamSamplePropertySet
struct winrt::Windows::Media::Core::MediaStreamSamplePropertySet
public sealed class MediaStreamSamplePropertySet
Public NotInheritable Class MediaStreamSamplePropertySet
// This class does not provide a public constructor.

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


See the MediaStreamSource Sample for an example of using Media Stream Source in a Universal Windows 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.


Size Size Size Size Size

Gets the number of items contained in the property set.


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

Removes all items from the property set.

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

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

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

Gets an immutable view of the property set.

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

Indicates if the specified key exists in the property set.

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

Adds the specified key and value to the property set.

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

Retrieves the value for the specified key.

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

Removes an item from the property set.

See also