Export (0) Print
Expand All

WebHeaderCollection Members

WebHeaderCollection overview

Public Constructors

public constructorWebHeaderCollection Constructor

Supported by the .NET Compact Framework.

Overloaded. Initializes a new instance of the WebHeaderCollection class.

Public Properties

public propertyAllKeys (inherited from NameValueCollection)

Supported by the .NET Compact Framework.

Gets all the keys in the NameValueCollection.
public propertyCount (inherited from NameObjectCollectionBase)

Supported by the .NET Compact Framework.

Gets the number of key-and-value pairs contained in the NameObjectCollectionBase instance.
public propertyItem (inherited from NameValueCollection) Overloaded. Gets or sets the specified entry of the NameValueCollection.

In C#, this property is the indexer for the WebHeaderCollection class.

public propertyKeys (inherited from NameObjectCollectionBase)

Supported by the .NET Compact Framework.

Gets a NameObjectCollectionBase.KeysCollection instance that contains all the keys in the NameObjectCollectionBase instance.

Public Methods

public methodAdd

Supported by the .NET Compact Framework.

Overloaded. Inserts a new header into the collection.
public methodClear (inherited from NameValueCollection)

Supported by the .NET Compact Framework.

Invalidates the cached arrays and removes all entries from the NameValueCollection.
public methodCopyTo (inherited from NameValueCollection) Copies the entire NameValueCollection to a compatible one-dimensional Array, starting at the specified index of the target array.
public methodEquals (inherited from Object)

Supported by the .NET Compact Framework.

Overloaded. Determines whether two Object instances are equal.
public methodGet (inherited from NameValueCollection)

Supported by the .NET Compact Framework.

Overloaded. Gets the values of a specified entry in the NameValueCollection combined into one comma-separated list.
public methodGetEnumerator (inherited from NameObjectCollectionBase)

Supported by the .NET Compact Framework.

Returns an enumerator that can iterate through the NameObjectCollectionBase.
public methodGetHashCode (inherited from Object)

Supported by the .NET Compact Framework.

Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
public methodGetKey (inherited from NameValueCollection)

Supported by the .NET Compact Framework.

Gets the key at the specified index of the NameValueCollection.
public methodGetObjectData (inherited from NameObjectCollectionBase) Implements the ISerializable interface and returns the data needed to serialize the NameObjectCollectionBase instance.
public methodGetType (inherited from Object)

Supported by the .NET Compact Framework.

Gets the Type of the current instance.
public methodGetValues

Supported by the .NET Compact Framework.

Overloaded. Overridden. Gets an array of header values stored in a header.
public methodHasKeys (inherited from NameValueCollection)

Supported by the .NET Compact Framework.

Gets a value indicating whether the NameValueCollection contains keys that are not a null reference (Nothing in Visual Basic).
public methodstatic (Shared in Visual Basic)IsRestricted

Supported by the .NET Compact Framework.

Tests whether the specified HTTP header can be set.
public methodOnDeserialization Overridden. See NameObjectCollectionBase.OnDeserialization.
public methodRemove

Supported by the .NET Compact Framework.

Overridden. Removes the specified header from the collection.
public methodSet

Supported by the .NET Compact Framework.

Overridden. Sets the specified header to the specified value.
public methodToString

Supported by the .NET Compact Framework.

Overridden. See Object.ToString.

Protected Constructors

protected constructorWebHeaderCollection Constructor Overloaded. Initializes a new instance of the WebHeaderCollection class.

Protected Properties

protected propertyIsReadOnly (inherited from NameObjectCollectionBase) Gets or sets a value indicating whether the NameObjectCollectionBase instance is read-only.

Protected Methods

protected methodAddWithoutValidate

Supported by the .NET Compact Framework.

Inserts a header into the collection without checking whether the header is on the restricted header list.
protected methodBaseAdd (inherited from NameObjectCollectionBase)

Supported by the .NET Compact Framework.

Adds an entry with the specified key and value into the NameObjectCollectionBase instance.
protected methodBaseClear (inherited from NameObjectCollectionBase)

Supported by the .NET Compact Framework.

Removes all entries from the NameObjectCollectionBase instance.
protected methodBaseGet (inherited from NameObjectCollectionBase)

Supported by the .NET Compact Framework.

Overloaded. Gets the value of the specified entry from the NameObjectCollectionBase instance.
protected methodBaseGetAllKeys (inherited from NameObjectCollectionBase)

Supported by the .NET Compact Framework.

Returns a String array that contains all the keys in the NameObjectCollectionBase instance.
protected methodBaseGetAllValues (inherited from NameObjectCollectionBase) Overloaded. Returns an array that contains all the values in the NameObjectCollectionBase instance.
protected methodBaseGetKey (inherited from NameObjectCollectionBase)

Supported by the .NET Compact Framework.

Gets the key of the entry at the specified index of the NameObjectCollectionBase instance.
protected methodBaseHasKeys (inherited from NameObjectCollectionBase)

Supported by the .NET Compact Framework.

Gets a value indicating whether the NameObjectCollectionBase instance contains entries whose keys are not a null reference (Nothing in Visual Basic).
protected methodBaseRemove (inherited from NameObjectCollectionBase)

Supported by the .NET Compact Framework.

Removes the entries with the specified key from the NameObjectCollectionBase instance.
protected methodBaseRemoveAt (inherited from NameObjectCollectionBase)

Supported by the .NET Compact Framework.

Removes the entry at the specified index of the NameObjectCollectionBase instance.
protected methodBaseSet (inherited from NameObjectCollectionBase)

Supported by the .NET Compact Framework.

Overloaded. Sets the value of an entry in the NameObjectCollectionBase instance.
protected methodFinalize (inherited from Object)

Supported by the .NET Compact Framework.

Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodInvalidateCachedArrays (inherited from NameValueCollection)

Supported by the .NET Compact Framework.

Resets the cached arrays of the collection to a null reference (Nothing in Visual Basic).
protected methodMemberwiseClone (inherited from Object)

Supported by the .NET Compact Framework.

Creates a shallow copy of the current Object.

See Also

WebHeaderCollection Class | System.Net Namespace

Show:
© 2015 Microsoft