IMapView<K, V> class winrt Interface

Represents an immutable view into a map.

Inheritance
Implemented types
Available extensions

Constructors

IMapView.fromRawPointer(Pointer<COMObject> ptr, {required String iterableIid, V creator(Pointer<COMObject>)?, K enumKeyCreator(int)?, V enumCreator(int)?})
Creates an instance of IMapView 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
Increments the reference count for an interface pointer to a COM object.
inherited
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
hasKey(K value) bool
Determines whether the map contains the specified key.
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
Queries a COM object for a pointer to one of its interface; identifying the interface by a reference to its interface identifier (IID).
inherited
release() int
Decrements the reference count for an interface on a COM object.
inherited
split(IMapView<K, V> first, IMapView<K, V> second) → void
Splits the map view into two views.
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 IMapView instance.
toString() String
A string representation of this object.
inherited

Operators

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