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)

Syntax

Public Sub New ( _
    key As Object, _
    value As Object _
)
public DictionaryEntry(
    Object key,
    Object value
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

key is nullNothingnullptra null reference (Nothing in Visual Basic) and the .NET Framework version is 1.0 or 1.1.

Remarks

In the .NET Framework 2.0 key can be nullNothingnullptra null reference (Nothing in Visual Basic).

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Platforms

Windows Phone

See Also

Reference

DictionaryEntry Structure

System.Collections Namespace