MediaPropertySet 类

定义

表示一组媒体属性。

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))
继承
Object Platform::Object IInspectable MediaPropertySet
属性
实现
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 要求

设备系列
Windows 10 (在 10.0.10240.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)

注解

此对象不会直接实例化,它通过检索以下属性之一返回:

有关使用属性集集合的信息,请参阅 PropertySet

集合成员列表

对于 JavaScript,MediaPropertySet 支持使用索引访问项。

构造函数

MediaPropertySet()

MediaPropertySet 创建实例。

属性

Size

获取属性集中包含的项数。

方法

Clear()

从属性集中删除所有项。

First()

返回一个迭代器,用于枚举属性集中的项。

GetView()

返回属性集的不可变视图。

HasKey(Guid)

指示属性集是否具有具有指定键的项。

Insert(Guid, Object)

将项添加到属性集。

Lookup(Guid)

检索指定键的值。

Remove(Guid)

从属性集中删除项。

适用于