Partager via


IKeyValuePair<K, V> interface

Represents a key-value pair.

Template parameters

  • K
    The type of the keys in the key-value pair.

  • V
    The type of the values in the key-value pair.

Members

The IKeyValuePair<K, V> interface inherits from IInspectable. IKeyValuePair also has these types of members:

  • Methods

Methods

The IKeyValuePair<K, V> interface has these methods.

Method Description
get_Key

Gets the key value of the key-value pair.

get_Value

Gets the value of the key-value pair.

 

Remarks

Key-value pairs are used in IMapView(K,V).

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Header

Windows.Foundation.Collections.h