ResourceQualifierMapView 类

定义

ResourceQualifier 对象映射的不可更改视图。

public ref class ResourceQualifierMapView sealed : IIterable<IKeyValuePair<Platform::String ^, Platform::String ^> ^>, IMapView<Platform::String ^, Platform::String ^>
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class ResourceQualifierMapView final : IIterable<IKeyValuePair<winrt::hstring, winrt::hstring const&>>, IMapView<winrt::hstring, winrt::hstring const&>
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class ResourceQualifierMapView : IEnumerable<KeyValuePair<string,string>>, IReadOnlyDictionary<string,string>
Public NotInheritable Class ResourceQualifierMapView
Implements IEnumerable(Of KeyValuePair(Of String, String)), IReadOnlyDictionary(Of String, String)
继承
Object Platform::Object IInspectable ResourceQualifierMapView
属性
实现
IIterable<IKeyValuePair<K,V>> IEnumerable<KeyValuePair<K,V>> IEnumerable<KeyValuePair<String,String>> IIterable<IKeyValuePair<Platform::String,Platform::String>> IIterable<IKeyValuePair<winrt::hstring,winrt::hstring>> IReadOnlyDictionary<String,String> IMapView<Platform::String,Platform::String> IMapView<winrt::hstring,winrt::hstring>

Windows 要求

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

属性

Size

获取映射中 ResourceQualifier 对象的数目。

方法

First()

返回一个迭代器,用于枚举地图视图中的项。

HasKey(String)

确定地图视图是否包含指定的键。

Lookup(String)

返回地图视图中指定键处的限定符名称。

Split(IMapView<String,String>, IMapView<String,String>)

将地图视图拆分为两个视图。

适用于