IKeyValuePair<K, V> class
winrt
Interface
Represents a key-value pair.
This is typically used as a constraint type when you need to encapsulate two type parameters into one to satisfy the constraints of another generic interface.
- Inheritance
-
- Object
- IUnknown
- IInspectable
- IKeyValuePair
- Available extensions
Constructors
-
IKeyValuePair.fromRawPointer(Pointer<
COMObject> ptr, {V creator(Pointer<COMObject> )?, V enumCreator(int)?}) -
Creates an instance of IKeyValuePair using the given
ptr
.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → K
-
Gets the key of the key-value pair.
no setter
-
ptr
↔ Pointer<
COMObject> -
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → V
-
Gets the value of the key-value pair.
no setter
Methods
-
addRef(
) → int -
inherited
-
getIids(
Pointer< Uint32> iidCount, Pointer<Pointer< iids) → intGUID> > -
inherited
-
getRuntimeClassName(
Pointer< IntPtr> className) → int -
inherited
-
getTrustLevel(
Pointer< Int32> trustLevel) → int -
inherited
-
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
-
toInterface(
String iid) → Pointer< COMObject> -
Cast an existing COM object to a specified interface.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited