NameValueCollection Methods
The methods of the NameValueCollection class are listed here. For a complete list of NameValueCollection class members, see the NameValueCollection Members topic.
Public Methods
Add Supported by the .NET Compact Framework. | Overloaded. Adds entries to the current NameValueCollection. |
Clear Supported by the .NET Compact Framework. | Invalidates the cached arrays and removes all entries from the NameValueCollection. |
CopyTo | Copies the entire NameValueCollection to a compatible one-dimensional Array, starting at the specified index of the target array. |
Equals (inherited from Object)
Supported by the .NET Compact Framework. | Overloaded. Determines whether two Object instances are equal. |
Get Supported by the .NET Compact Framework. | Overloaded. Gets the values of a specified entry in the NameValueCollection combined into one comma-separated list. |
GetEnumerator (inherited from NameObjectCollectionBase)
Supported by the .NET Compact Framework. | Returns an enumerator that can iterate through the NameObjectCollectionBase. |
GetHashCode (inherited from Object)
Supported by the .NET Compact Framework. | Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. |
GetKey Supported by the .NET Compact Framework. | Gets the key at the specified index of the NameValueCollection. |
GetObjectData (inherited from NameObjectCollectionBase) | Implements the ISerializable interface and returns the data needed to serialize the NameObjectCollectionBase instance. |
GetType (inherited from Object)
Supported by the .NET Compact Framework. | Gets the Type of the current instance. |
GetValues Supported by the .NET Compact Framework. | Overloaded. Gets the values of a specified entry in the NameValueCollection. |
HasKeys Supported by the .NET Compact Framework. | Gets a value indicating whether the NameValueCollection contains keys that are not a null reference (Nothing in Visual Basic). |
OnDeserialization (inherited from NameObjectCollectionBase) | Implements the ISerializable interface and raises the deserialization event when the deserialization is complete. |
Remove Supported by the .NET Compact Framework. | Removes the entries with the specified key from the NameObjectCollectionBase instance. |
Set Supported by the .NET Compact Framework. | Sets the value of an entry in the NameValueCollection. |
ToString (inherited from Object)
Supported by the .NET Compact Framework. | Returns a String that represents the current Object. |
Protected Methods
BaseAdd (inherited from NameObjectCollectionBase)
Supported by the .NET Compact Framework. | Adds an entry with the specified key and value into the NameObjectCollectionBase instance. |
BaseClear (inherited from NameObjectCollectionBase)
Supported by the .NET Compact Framework. | Removes all entries from the NameObjectCollectionBase instance. |
BaseGet (inherited from NameObjectCollectionBase)
Supported by the .NET Compact Framework. | Overloaded. Gets the value of the specified entry from the NameObjectCollectionBase instance. |
BaseGetAllKeys (inherited from NameObjectCollectionBase)
Supported by the .NET Compact Framework. | Returns a String array that contains all the keys in the NameObjectCollectionBase instance. |
BaseGetAllValues (inherited from NameObjectCollectionBase) | Overloaded. Returns an array that contains all the values in the NameObjectCollectionBase instance. |
BaseGetKey (inherited from NameObjectCollectionBase)
Supported by the .NET Compact Framework. | Gets the key of the entry at the specified index of the NameObjectCollectionBase instance. |
BaseHasKeys (inherited from NameObjectCollectionBase)
Supported by the .NET Compact Framework. | Gets a value indicating whether the NameObjectCollectionBase instance contains entries whose keys are not a null reference (Nothing in Visual Basic). |
BaseRemove (inherited from NameObjectCollectionBase)
Supported by the .NET Compact Framework. | Removes the entries with the specified key from the NameObjectCollectionBase instance. |
BaseRemoveAt (inherited from NameObjectCollectionBase)
Supported by the .NET Compact Framework. | Removes the entry at the specified index of the NameObjectCollectionBase instance. |
BaseSet (inherited from NameObjectCollectionBase)
Supported by the .NET Compact Framework. | Overloaded. Sets the value of an entry in the NameObjectCollectionBase instance. |
Finalize (inherited from Object)
Supported by the .NET Compact Framework. | Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
In C# and C++, finalizers are expressed using destructor syntax. |
InvalidateCachedArrays Supported by the .NET Compact Framework. | Resets the cached arrays of the collection to a null reference (Nothing in Visual Basic). |
MemberwiseClone (inherited from Object)
Supported by the .NET Compact Framework. | Creates a shallow copy of the current Object. |
See Also
NameValueCollection Class | System.Collections.Specialized Namespace
