NameValueCollection Constructor

 

Initializes a new instance of the NameValueCollection class.

Namespace:   System.Collections.Specialized
Assembly:  System (in System.dll)

NameDescription
System_CAPS_pubmethodNameValueCollection()

Initializes a new instance of the NameValueCollection class that is empty, has the default initial capacity and uses the default case-insensitive hash code provider and the default case-insensitive comparer.

System_CAPS_pubmethodNameValueCollection(IEqualityComparer)

Initializes a new instance of the NameValueCollection class that is empty, has the default initial capacity, and uses the specified IEqualityComparer object.

System_CAPS_pubmethodNameValueCollection(IHashCodeProvider, IComparer)

Obsolete.Initializes a new instance of the NameValueCollection class that is empty, has the default initial capacity and uses the specified hash code provider and the specified comparer.

System_CAPS_pubmethodNameValueCollection(Int32)

Initializes a new instance of the NameValueCollection class that is empty, has the specified initial capacity and uses the default case-insensitive hash code provider and the default case-insensitive comparer.

System_CAPS_pubmethodNameValueCollection(Int32, IEqualityComparer)

Initializes a new instance of the NameValueCollection class that is empty, has the specified initial capacity, and uses the specified IEqualityComparer object.

System_CAPS_pubmethodNameValueCollection(Int32, IHashCodeProvider, IComparer)

Obsolete.Initializes a new instance of the NameValueCollection class that is empty, has the specified initial capacity and uses the specified hash code provider and the specified comparer.

System_CAPS_pubmethodNameValueCollection(Int32, NameValueCollection)

Copies the entries from the specified NameValueCollection to a new NameValueCollection with the specified initial capacity or the same initial capacity as the number of entries copied, whichever is greater, and using the default case-insensitive hash code provider and the default case-insensitive comparer.

System_CAPS_pubmethodNameValueCollection(NameValueCollection)

Copies the entries from the specified NameValueCollection to a new NameValueCollection with the same initial capacity as the number of entries copied and using the same hash code provider and the same comparer as the source collection.

System_CAPS_protmethodNameValueCollection(SerializationInfo, StreamingContext)

Initializes a new instance of the NameValueCollection class that is serializable and uses the specified System.Runtime.Serialization.SerializationInfo and System.Runtime.Serialization.StreamingContext.

Return to top
Show: