ResourceQualifierMapView ResourceQualifierMapView ResourceQualifierMapView ResourceQualifierMapView Class

Definition

An unchangeable view into a map of ResourceQualifier objects.

public : sealed class ResourceQualifierMapView : IIterable<IKeyValuePair<Platform::String, Platform::String>>, IMapView<Platform::String, Platform::String>
public sealed class ResourceQualifierMapView : IEnumerable<KeyValuePair<String, String>>, IReadOnlyDictionary<String, String>
Public NotInheritable Class ResourceQualifierMapView Implements IEnumerable<KeyValuePair<String, String>>, IReadOnlyDictionary<String, String>
// This class does not provide a public constructor.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

Collection member lists

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

Properties

Item[TKey] Item[TKey] Item[TKey] Item[TKey]

Gets the element that has the specified key in the read-only dictionary.

This member is not implemented in C++
TValue this[TKey key] { get; }
ReadOnly Property Item(key As TKey) As TValue
TValue this[TKey key] { get; }
Parameters
key
TKey TKey TKey TKey

The key to locate.

Value
TValue TValue TValue TValue

The element that has the specified key in the read-only dictionary.

Exceptions

key is null.

The property is retrieved and key is not found.

Keys Keys Keys Keys

Gets an enumerable collection that contains the keys in the read-only dictionary.

This member is not implemented in C++
IEnumerable<TKey> Keys { get; }
ReadOnly Property Keys As IEnumerable(Of TKey)
IEnumerable<TKey> Keys { get; }
Value

An enumerable collection that contains the keys in the read-only dictionary.

Size Size Size Size

Gets the number of ResourceQualifier objects in the map.

public : unsigned int Size { get; }
This member is not implemented in C#
This member is not implemented in VB.Net
var uint = resourceQualifierMapView.size;
Value
unsigned int uint uint uint

The number of ResourceQualifier objects in the map.

Values Values Values Values

Gets an enumerable collection that contains the values in the read-only dictionary.

This member is not implemented in C++
IEnumerable<TValue> Values { get; }
ReadOnly Property Values As IEnumerable(Of TValue)
IEnumerable<TValue> Values { get; }
Value

An enumerable collection that contains the values in the read-only dictionary.

Methods

ContainsKey(TKey) ContainsKey(TKey) ContainsKey(TKey) ContainsKey(TKey)

Determines whether the read-only dictionary contains an element that has the specified key.

This member is not implemented in C++
bool ContainsKey(TKey key)
Function ContainsKey(key As TKey) As Boolean
bool ContainsKey(TKey key)
Parameters
key
TKey TKey TKey TKey

The key to locate.

Returns

true if the read-only dictionary contains an element that has the specified key; otherwise, false.

Exceptions

key is null.

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

Returns an iterator to enumerate the items in the map view.

public : IIterator<IKeyValuePair<Platform::String, Platform::String>> First()
This member is not implemented in C#
This member is not implemented in VB.Net
var iIterator = resourceQualifierMapView.first();
Returns
IIterator<IKeyValuePair<Platform::String, Platform::String>> IIterator<KeyValuePair<string, string>> IIterator<KeyValuePair<string, string>> IIterator<KeyValuePair<string, string>>

The iterator. The current position of the iterator is index 0, or the end of the map view if the map view is empty.

GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()

Returns an enumerator that iterates through the collection.

This member is not implemented in C++
IEnumerator<T> GetEnumerator()
Function GetEnumerator As IEnumerator(Of T)
IEnumerator<T> GetEnumerator()
Returns

An enumerator that can be used to iterate through the collection.

HasKey(String) HasKey(String) HasKey(String) HasKey(String)

Determines whether the map view contains the specified key.

public : Platform::Boolean HasKey(Platform::String key)
This member is not implemented in C#
This member is not implemented in VB.Net
var bool = resourceQualifierMapView.hasKey(key);
Parameters
key
Platform::String String String String

The key to locate in the map view.

Returns
Platform::Boolean bool bool bool

TRUE if the key is found, otherwise FALSE if it is not found.

Lookup(String) Lookup(String) Lookup(String) Lookup(String)

Returns the qualifier name at the specified key in the map view.

public : Platform::String Lookup(Platform::String key)
This member is not implemented in C#
This member is not implemented in VB.Net
var string = resourceQualifierMapView.lookup(key);
Parameters
key
Platform::String String String String

The key to locate in the map view.

Returns
Platform::String string string string

The value, if an item with the specified key exists. Use the HasKey method to determine whether the key exists.

Split(IMapView, IMapView) Split(IMapView, IMapView) Split(IMapView, IMapView) Split(IMapView, IMapView)

Splits the map view into two views.

public : void Split(IMapView<Platform::String, Platform::String> first, IMapView<Platform::String, Platform::String> second)
This member is not implemented in C#
This member is not implemented in VB.Net
resourceQualifierMapView.split(first, second);
Parameters
first
IMapView<Platform::String, Platform::String> IReadOnlyDictionary<String, String> IReadOnlyDictionary<String, String> IReadOnlyDictionary<String, String>

One half of the original map.

second
IMapView<Platform::String, Platform::String> IReadOnlyDictionary<String, String> IReadOnlyDictionary<String, String> IReadOnlyDictionary<String, String>

The second half of the original map.

Remarks

The two views that result from the split operation might not contain the same number of items. The two views do not overlap.

If a view can't be split, then both the first and second parameter are NULL.

TryGetValue(TKey, out TValue) TryGetValue(TKey, out TValue) TryGetValue(TKey, out TValue) TryGetValue(TKey, out TValue)

Gets the value that is associated with the specified key.

This member is not implemented in C++
bool TryGetValue(TKey key, out TValue value)
Function TryGetValue(key As TKey, ByRef value As TValue) As Boolean
bool TryGetValue(TKey key, out TValue value)
Parameters
key
TKey TKey TKey TKey

The key to locate.

value
TValue TValue TValue TValue

When this method returns, the value associated with the specified key, if the key is found; otherwise, the default value for the type of the value parameter. This parameter is passed uninitialized.

Returns

true if the object that implements the System.Collections.Generic.IReadOnlyDictionary`2 interface contains an element that has the specified key; otherwise, false.

Exceptions

key is null.