DictionaryEntry Constructor
Collapse the table of content
Expand the table of content

DictionaryEntry Constructor

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Initializes an instance of the DictionaryEntry type with the specified key and value.

Namespace:  System.Collections
Assembly:  mscorlib (in mscorlib.dll)

public DictionaryEntry(
	Object key,
	Object value
)

Parameters

key
Type: System.Object
The object defined in each key/value pair.
value
Type: System.Object
The definition associated with key.

ExceptionCondition
ArgumentNullException

key is null and the .NET Framework version is 1.0 or 1.1.

In the .NET Framework 2.0 key can be null.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft