Udostępnij za pośrednictwem


ResourceQualifierObservableMap Class

Definition

Notifies listeners of dynamic changes to a map of ResourceQualifier objects, such as when items get added or removed, and allows qualifier values to change.

public ref class ResourceQualifierObservableMap sealed : IIterable<IKeyValuePair<Platform::String ^, Platform::String ^> ^>, IMap<Platform::String ^, Platform::String ^>, IObservableMap<Platform::String ^, Platform::String ^>
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class ResourceQualifierObservableMap final : IIterable<IKeyValuePair<winrt::hstring, winrt::hstring const&>>, IMap<winrt::hstring, winrt::hstring const&>, IObservableMap<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 ResourceQualifierObservableMap : IDictionary<string,string>, IEnumerable<KeyValuePair<string,string>>, IObservableMap<string,string>
Public NotInheritable Class ResourceQualifierObservableMap
Implements IDictionary(Of String, String), IEnumerable(Of KeyValuePair(Of String, String)), IObservableMap(Of String, String)
Inheritance
Object Platform::Object IInspectable ResourceQualifierObservableMap
Attributes
Implements
IMap<K,V> IDictionary<K,V> IDictionary<String,String> IMap<Platform::String,Platform::String> IMap<winrt::hstring,winrt::hstring> IIterable<IKeyValuePair<K,V>> IEnumerable<KeyValuePair<K,V>> IEnumerable<KeyValuePair<String,String>> IIterable<IKeyValuePair<Platform::String,Platform::String>> IIterable<IKeyValuePair<winrt::hstring,winrt::hstring>> IObservableMap<String,String> IObservableMap<Platform::String,Platform::String> IObservableMap<winrt::hstring,winrt::hstring>

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Properties

Size

Gets the number of ResourceQualifier objects in the observable map.

Methods

Clear()

Removes all items from the observable map.

First()

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

GetView()

Returns an unchangeable view of the observable map.

HasKey(String)

Determines whether the observable map contains the specified key.

Insert(String, String)

Inserts or replaces an item in the observable map.

Lookup(String)

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

Remove(String)

Removes an item from the observable map.

Events

MapChanged

Occurs when the map changes.

Applies to