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()
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
ptr Pointer<COMObject>
getter/setter pairinherited
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

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