The NameValueCollection type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | NameValueCollection()()()() |
Initializes a new instance of the NameValueCollection class
that is empty and has the default initial capacity.
|
![]() | NameValueCollection(Int32) |
Initializes a new instance of the NameValueCollection class
that is empty and has the specified initial capacity.
|
![]() | NameValueCollection(NameValueCollection) |
Initializes a new instance of the NameValueCollection class
that contains elements copied from the specified collection and
that has the same initial capacity as the number of elements copied.
|
![]() | NameValueCollection(array<NameValueEntry>[]()[][]) |
Initializes a new instance of the NameValueCollection class
that contains elements copied from the specified NameValueEntry
array and that has the same initial capacity as the number of elements copied.
|
Methods
Name | Description | |
---|---|---|
![]() | Add(NameValueEntry) |
Adds a NameValueEntry to the end of the NameValueCollection.
|
![]() | Add(String, String) |
Adds an element with the specified String key and
String value to the end of the NameValueCollection.
|
![]() | AddRange(NameValueCollection) |
Adds the elements of another collection to the end of the NameValueCollection.
|
![]() | AddRange(array<NameValueEntry>[]()[][]) |
Adds the elements of a NameValueEntry array
to the end of the NameValueCollection.
|
![]() | Clear |
Removes all elements from the NameValueCollection.
|
![]() | Clone |
Creates a shallow copy of the NameValueCollection.
|
![]() | Contains |
Determines whether the NameValueCollection
contains the specified NameValueEntry element.
|
![]() | ContainsKey |
Determines whether the NameValueCollection
contains the specified String key.
|
![]() | ContainsValue |
Determines whether the NameValueCollection
contains the specified String value.
|
![]() | CopyTo |
Copies the entire NameValueCollection to a one-dimensional Array of
NameValueEntry elements, starting at the specified index of the target array.
|
![]() | Equals(Object) | (Inherited from Object.) |
![]() | Equals(NameValueCollection) |
Determines whether the specified NameValueCollection
is equal to the current NameValueCollection.
|
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetByIndex |
Gets the String value at the
specified index of the NameValueCollection.
|
![]() | GetByKey | |
![]() | GetEnumerator |
Returns an IStringStringEnumerator that can
iterate through the NameValueCollection.
|
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetKey |
Gets the String key at the
specified index of the NameValueCollection.
|
![]() | GetKeyList |
Gets the keys in the NameValueCollection.
|
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | GetValueList |
Gets the values in the NameValueCollection.
|
![]() | IndexOf |
Returns the zero-based index of the first occurrence of the specified
NameValueEntry in the NameValueCollection.
|
![]() | IndexOfKey |
Returns the zero-based index of the first occurrence of the specified
String key in the NameValueCollection.
|
![]() | IndexOfValue |
Returns the zero-based index of first occurrence of the specified
String value in the NameValueCollection.
|
![]() | Insert |
Inserts a NameValueEntry element into the
NameValueCollection at the specified index.
|
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | Remove |
Removes the first occurrence of the specified NameValueEntry
from the NameValueCollection.
|
![]() | RemoveAt |
Removes the element at the specified index of the NameValueCollection.
|
![]() | SetByIndex |
Sets the String value at the
specified index of the NameValueCollection.
|
![]() | SetByKey | |
![]() ![]() | Synchronized |
Returns a synchronized (thread-safe) wrapper
for the specified NameValueCollection.
|
![]() | ToArray | |
![]() | ToString | (Overrides Object..::..ToString()()()().) |
![]() | TrimToSize |
Sets the capacity to the actual number of elements in the NameValueCollection.
|
Properties
Name | Description | |
---|---|---|
![]() | Capacity |
Gets or sets the capacity of the NameValueCollection.
|
![]() | Count |
Gets the number of key-and-value pairs contained
in the NameValueCollection.
|
![]() | InnerKeys |
Gets the list of keys contained in the NameValueCollection instance.
|
![]() | InnerValues |
Gets the list of values contained in the NameValueCollection instance.
|
![]() | IsFixedSize |
Gets a value indicating whether the NameValueCollection has a fixed size.
|
![]() | IsReadOnly |
Gets a value indicating whether the NameValueCollection is read-only.
|
![]() | IsSynchronized |
Gets a value indicating whether access to the NameValueCollection
is synchronized (thread-safe).
|
![]() | Item |
Gets or sets the NameValueEntry element at the specified index.
|
![]() | Keys |
Gets an IStringCollection containing
the keys in the NameValueCollection.
|
![]() | SyncRoot |
Gets an object that can be used to synchronize
access to the NameValueCollection.
|
![]() | Values |
Gets an IStringCollection containing
the values in the NameValueCollection.
|