Export (0) Print
Expand All

WebHeaderCollection Methods

The WebHeaderCollection type exposes the following members.

  NameDescription
Public method Supported by the .NET Compact Framework Add Overloaded. Inserts a new header into the collection.
Protected method Supported by the .NET Compact Framework AddWithoutValidate Inserts a header into the collection without checking whether the header is on the restricted header list.
Protected method Supported by the .NET Compact Framework BaseAdd Adds an entry with the specified key and value into the NameObjectCollectionBase instance. (Inherited from NameObjectCollectionBase.)
Protected method Supported by the .NET Compact Framework BaseClear Removes all entries from the NameObjectCollectionBase instance. (Inherited from NameObjectCollectionBase.)
Protected method Supported by the .NET Compact Framework BaseGet Overloaded. Gets the value of the specified entry from the NameObjectCollectionBase instance.
Protected method Supported by the .NET Compact Framework BaseGetAllKeys Returns a String array that contains all the keys in the NameObjectCollectionBase instance. (Inherited from NameObjectCollectionBase.)
Protected method BaseGetAllValues Overloaded. Returns an array that contains all the values in the NameObjectCollectionBase instance.
Protected method Supported by the .NET Compact Framework BaseGetKey Gets the key of the entry at the specified index of the NameObjectCollectionBase instance. (Inherited from NameObjectCollectionBase.)
Protected method Supported by the .NET Compact Framework BaseHasKeys Gets a value indicating whether the NameObjectCollectionBase instance contains entries whose keys are not null. (Inherited from NameObjectCollectionBase.)
Protected method Supported by the .NET Compact Framework BaseRemove Removes the entries with the specified key from the NameObjectCollectionBase instance. (Inherited from NameObjectCollectionBase.)
Protected method Supported by the .NET Compact Framework BaseRemoveAt Removes the entry at the specified index of the NameObjectCollectionBase instance. (Inherited from NameObjectCollectionBase.)
Protected method Supported by the .NET Compact Framework BaseSet Overloaded. Sets the value of an entry in the NameObjectCollectionBase instance.
Public method Supported by the .NET Compact Framework Clear Removes all headers from the collection. (Overrides NameValueCollection.Clear().)

In .NET Compact Framework 3.5, this member is inherited from NameValueCollection.Clear().
Public method CopyTo Copies the entire NameValueCollection to a compatible one-dimensional Array, starting at the specified index of the target array. (Inherited from NameValueCollection.)
Public method Supported by the .NET Compact Framework Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Supported by the .NET Compact Framework Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method Supported by the .NET Compact Framework Get Overloaded. Get the value of a header from the collection.
Public method Supported by the .NET Compact Framework GetEnumerator Returns an enumerator that can iterate through the WebHeaderCollection instance. (Overrides NameObjectCollectionBase.GetEnumerator().)

In .NET Compact Framework 3.5, this member is inherited from NameObjectCollectionBase.GetEnumerator().
Public method Supported by the .NET Compact Framework GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method Supported by the .NET Compact Framework GetKey Get the header name at the specified position in the collection. (Overrides NameValueCollection.GetKey(Int32).)

In .NET Compact Framework 3.5, this member is inherited from NameValueCollection.GetKey(Int32).
Public method GetObjectData Infrastructure. Populates a SerializationInfo with the data needed to serialize the target object. (Overrides NameObjectCollectionBase.GetObjectData(SerializationInfo, StreamingContext).)
Public method Supported by the .NET Compact Framework GetType Gets the type of the current instance. (Inherited from Object.)
Public method Supported by the .NET Compact Framework GetValues Overloaded. Gets an array of header values stored in a header.
Public method Supported by the .NET Compact Framework HasKeys Gets a value indicating whether the NameValueCollection contains keys that are not null. (Inherited from NameValueCollection.)
Protected method Supported by the .NET Compact Framework InvalidateCachedArrays Resets the cached arrays of the collection to null. (Inherited from NameValueCollection.)
Public method Static member Supported by the .NET Compact Framework IsRestricted Overloaded. Tests whether the specified HTTP header can be set.
Protected method Supported by the .NET Compact Framework MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method OnDeserialization Implements the ISerializable interface and raises the deserialization event when the deserialization is complete. (Overrides NameObjectCollectionBase.OnDeserialization(Object).)
Public method Supported by the .NET Compact Framework Remove Overloaded. Removes the specified header from the collection.
Public method Supported by the .NET Compact Framework Set Overloaded. Sets the specified header to the specified value.
Public method Supported by the .NET Compact Framework ToByteArray Infrastructure. Converts the WebHeaderCollection to a byte array..
Public method Supported by the .NET Compact Framework ToString Infrastructure. Obsolete. (Overrides Object.ToString().)
Top

  NameDescription
Explicit interface implemetation Private method Supported by the .NET Compact Framework ICollection.CopyTo Copies the entire NameObjectCollectionBase to a compatible one-dimensional Array, starting at the specified index of the target array. (Inherited from NameObjectCollectionBase.)
Explicit interface implemetation Private method ISerializable.GetObjectData Infrastructure. Serializes this instance into the specified SerializationInfo object.
Top

Community Additions

ADD
Show:
© 2015 Microsoft