0 out of 1 rated this helpful - Rate this topic

IKeyValuePair<K, V> interface

Applies to Windows and Windows Phone

Represents a key-value pair.

.NET:  This interface appears as System.Collections.Generic.KeyValuePair<K,V>.

Syntax


generic<typename K, typename V>
public interface class IKeyValuePair

Attributes

[Version(0x06020000)]

Type 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 interface inherits from the IUnknown interface. IKeyValuePair also has these types of members:

Properties

The IKeyValuePair interface has these properties.

PropertyAccess typeDescription

Key

Read-onlyGets the key of the key-value pair.

Value

Read-onlyGets the value of the key-value pair.

 

Remarks

When building Windows Store apps with the Microsoft .NET Framework, this interface is hidden and developers should use the System.Collections.Generic.KeyValuePair<K,V> class.

Key-value pairs are used in the IMap<K,V> interface.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8

Namespace

Windows::Foundation::Collections

Metadata

Windows.winmd

See also

IMap<K,V>

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.