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#
foreach
semantics 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.
- key
- The Object defined to reference a dictionary entry.
- value
- The Object that contains the content associated with key.
Exception Type Condition ArgumentNullException key is null
.
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 .
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