Export (0) Print
Expand All

DictionaryEntry Constructor

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

[Visual Basic]
Public Sub New( _
   ByVal key As Object, _
   ByVal value As Object _
)
[C#]
public DictionaryEntry(
   object key,
 object value
);
[C++]
public: DictionaryEntry(
   Object* key,
 Object* value
);
[JScript]
public function DictionaryEntry(
   key : Object,
 value : Object
);

Parameters

key
The object defined in each key-and-value pair.
value
The definition associated with key.

Exceptions

Exception Type Condition
ArgumentNullException key is a null reference (Nothing in Visual Basic).

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

DictionaryEntry Structure | DictionaryEntry Members | System.Collections Namespace

Show:
© 2014 Microsoft