public struct DictionaryEntry
Object
ValueType
DictionaryEntry
mscorlib
BCL
Represents a dictionary entry consisting of a System.Collections.DictionaryEntry.Key and an associated System.Collections.DictionaryEntry.Value.
[Note: Some types that manage or access collections of objects, such as Hashtable and IDictionaryEnumerator, rely on the use of one or more pairs of a key object and an associated value object. DictionaryEntry provides this functionality.This structure supports the C#
foreachsemantics for Hashtable.]
System.Collections Namespace
DictionaryEntry Constructors
DictionaryEntry Properties
public DictionaryEntry(object key, object value);
Constructs and initializes a new instance of the DictionaryEntry class with the specified key and value objects.
Exception TypeConditionArgumentNullException key isnull.
System.Collections.DictionaryEntry Structure, System.Collections Namespace
public object Key { get; set; }
Gets or sets an object representing the key of the current DictionaryEntry .
A Object representing the key of the current DictionaryEntry .
Exception TypeConditionArgumentNullException Set value isnull.
System.Collections.DictionaryEntry Structure, System.Collections Namespace
public object Value { get; set; }
Gets or sets an object representing the content of the current DictionaryEntry .
A Object representing the content of the current DictionaryEntry .
System.Collections.DictionaryEntry Structure, System.Collections Namespace