NameValueCollection Constructor

NameValueCollection Constructor

Initializes a new instance of the NameValueCollection class.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Public method NameValueCollection() 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.
Public method NameValueCollection(IEqualityComparer) Initializes a new instance of the NameValueCollection class that is empty, has the default initial capacity, and uses the specified IEqualityComparer object.
Public method NameValueCollection(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.
Public method NameValueCollection(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.
Public method NameValueCollection(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.
Public method NameValueCollection(Int32, IEqualityComparer) Initializes a new instance of the NameValueCollection class that is empty, has the specified initial capacity, and uses the specified IEqualityComparer object.
Public method NameValueCollection(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.
Protected method NameValueCollection(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.
Public method NameValueCollection(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.
Top

Community Additions

ADD
Show:
© 2016 Microsoft