ResourceMapMapView
ResourceMapMapView
ResourceMapMapView
ResourceMapMapView
Class
Definition
An unchangeable view into a map of ResourceMap objects.
public : sealed class ResourceMapMapView : IIterable, IMapViewpublic sealed class ResourceMapMapView : IEnumerable, IReadOnlyDictionaryPublic NotInheritable Class ResourceMapMapView Implements IEnumerable, IReadOnlyDictionary// You can use this class in JavaScript.
- Attributes
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Remarks
Collection member lists
For JavaScript, ResourceMapMapView 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 TValueTValue this[TKey key] { get; }
- 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.
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 ResourceMap objects in the map.
public : unsigned int Size { get; }This member is not implemented in C#This member is not implemented in VB.Net// You can use this property in JavaScript.
- Value
- unsigned int uint uint uint
The number of ResourceMap 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 Booleanbool ContainsKey(TKey key)
- key
- TKey TKey TKey TKey
The key to locate.
true if the read-only dictionary contains an element that has the specified key; otherwise, false.
key is null.
First() First() First() First()
Returns an iterator to enumerate the items in the map view.
public : IIterator<IKeyValuePair<PlatForm::String, ResourceMap>> First()This member is not implemented in C#This member is not implemented in VB.Net// You can use this method in JavaScript.
The iterator. The current position of the iterator is index 0, or the end of the map if the map 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()
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// You can use this method in JavaScript.
- key
- PlatForm::String String String String
The key to locate in the map view.
TRUE if the key is found, otherwise FALSE if it is not found.
Lookup(String) Lookup(String) Lookup(String) Lookup(String)
Returns the ResourceMap at the specified key in the map view.
public : ResourceMap Lookup(PlatForm::String key)This member is not implemented in C#This member is not implemented in VB.Net// You can use this method in JavaScript.
- key
- PlatForm::String String String String
The key to locate in the map view.
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, ResourceMap> first, IMapView<PlatForm::String, ResourceMap> second)This member is not implemented in C#This member is not implemented in VB.Net// You can use this method in JavaScript.
- first
- IMapView<PlatForm::String, ResourceMap> IReadOnlyDictionary<String, ResourceMap> IReadOnlyDictionary<String, ResourceMap> IReadOnlyDictionary<String, ResourceMap>
One half of the original map.
- second
- IMapView<PlatForm::String, ResourceMap> IReadOnlyDictionary<String, ResourceMap> IReadOnlyDictionary<String, ResourceMap> IReadOnlyDictionary<String, ResourceMap>
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 Booleanbool TryGetValue(TKey key, out TValue value)
- 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.
true if the object that implements the System.Collections.Generic.IReadOnlyDictionary`2 interface contains an element that has the specified key; otherwise, false.
key is null.