IMap<K, V> class winrt Interface

Represents an associative collection, also known as a map or a dictionary.

Inheritance
Implemented types
Implementers
Available extensions

Constructors

IMap.new()
Creates an empty IMap.
factory
IMap.fromMap(Map<K, V> other)
Creates an IMap with the same keys and values as other.
factory
IMap.fromRawPointer(Pointer<COMObject> ptr, {required String iterableIid, V creator(Pointer<COMObject>)?, V enumCreator(int)?})
Creates an instance of IMap using the given ptr and iterableIid.

Properties

hashCode int
The hash code for this object.
no setterinherited
iids List<String>

Available on IInspectable, provided by the IInspectableExtension extension

Returns the interface IIDs that are implemented by the current Windows Runtime class.
no setter
ptr Pointer<COMObject>
getter/setter pairinherited
runtimeClassName String

Available on IInspectable, provided by the IInspectableExtension extension

Gets the fully qualified name of the current Windows Runtime object.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size int
Gets the number of items in the map.
no setter
trustLevel TrustLevel

Available on IInspectable, provided by the IInspectableExtension extension

Gets the trust level of the current Windows Runtime object.
no setter

Methods

addRef() int
inherited
clear() → void
Removes all items from the map.
first() IIterator<IKeyValuePair<K, V>>
Returns an iterator for the items in the collection.
override
getIids(Pointer<Uint32> iidCount, Pointer<Pointer<GUID>> iids) int
inherited
getRuntimeClassName(Pointer<IntPtr> className) int
inherited
getTrustLevel(Pointer<Int32> trustLevel) int
inherited
getView() Map<K, V>
Returns an immutable view of the map.
hasKey(K value) bool
Determines whether the map contains the specified key.
insert(K key, V value) bool
Inserts or replaces an item in the map.
lookup(K key) → V
Returns the item at the specified key in the map.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
queryInterface(Pointer<GUID> riid, Pointer<Pointer<NativeType>> ppvObject) int
inherited
release() int
inherited
remove(K key) → void
Removes an item from the map.
toInterface(String iid) Pointer<COMObject>
Cast an existing COM object to a specified interface.
inherited
toMap() Map<K, V>
Creates an unmodifiable Map from the current IMap instance.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited