Mono Class Library: Overview

System.Collections.Specialized.NameValueCollection: Members

The members of System.Collections.Specialized.NameValueCollection are listed below.

See Also: Inherited members from System.Collections.Specialized.NameObjectCollectionBase

Public Constructors

Constructs and initializes a new instance of the System.Collections.Specialized.NameValueCollection class.
Documentation for this section has not yet been entered.
Constructs and initializes a new instance of the System.Collections.Specialized.NameValueCollection class using the values of the specified System.Collections.Specialized.NameValueCollection .
Constructs and initializes a new instance of the System.Collections.Specialized.NameValueCollection class with the specified initial capacity.
Constructs and initializes a new instance of the System.Collections.Specialized.NameValueCollection class with the specified IHashCodeProvider and the specified IComparer .
Documentation for this section has not yet been entered.
Constructs and initializes new instance of the System.Collections.Specialized.NameValueCollection class that contains the same values as the specified System.Collections.Specialized.NameValueCollection and either the specified capacity or the capacity of the specified collection, whichever is greater.
Constructs and initializes new instance of the System.Collections.Specialized.NameValueCollection class with the specified initial capacity, hash code provider, and comparer.

Protected Constructors

Public Properties

[read-only]
AllKeysstring[]. Gets all the keys in the current instance.
[read-only]
Countint. Gets the number of elements contained in the current instance.
[read-only]
default property
Item(int)string. Gets the value in the current instance that is associated with the specified index.
default property
Item(string)string. Gets or sets the value in the current instance that is associated with the specified key.

Protected Properties

IsReadOnlybool. Gets or sets a value indicating whether the current instance is read-only.

Public Methods

Add(NameValueCollection)
Copies the entries from the specified System.Collections.Specialized.NameValueCollection to the current instance.
Add(string, string)
Adds an entry with the specified key and value to the current instance.
Clear()
Invalidates the cached arrays and removes all entries from the current instance.
CopyTo(Array, int)
Copies the elements from the current instance to the specified Array, starting at the specified index in that array.
Get(int) : string
Returns the values at the specified index of the current instance.
Get(string) : string
Gets the values associated with the specified key from the current instance combined into one comma-separated list.
GetKey(int) : string
Returns the key at the specified index of the current instance.
GetValues(int) : string[]
Returns an array that contains the values at the specified index of the current instance.
GetValues(string) : string[]
Gets the values associated with the specified key from the current instance.
HasKeys() : bool
Gets a bool value indicating whether the current instance contains keys that are not null.
Remove(string)
Removes the entry with the specified key from the current instance.
Set(string, string)
Sets the value of the specified entry in the current instance to the specified value.

Protected Methods

InvalidateCachedArrays()
Resets the cached arrays of the current instance to null.

Extension Methods

static
AsQueryable(this IEnumerable) : System.Linq.IQueryable
Documentation for this section has not yet been entered.
static
Cast<TResult>(this IEnumerable) : IEnumerable<TResult>
Documentation for this section has not yet been entered.
static
OfType<TResult>(this IEnumerable) : IEnumerable<TResult>
Documentation for this section has not yet been entered.