IMap<K, V> class
winrt
Interface
Represents an associative collection, also known as a map or a dictionary.
- Inheritance
-
- Object
- IUnknown
- IInspectable
- IMap
- Implemented types
-
- IIterable<
IKeyValuePair< K, V> >
- IIterable<
- 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
anditerableIid
.
Properties
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< iids) → intGUID> > -
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< ppvObject) → intNativeType> > -
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