HeaderElement Class

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Represents a single HTTP header that is included in a response from the output cache.

Namespace:   System.Web.Caching
Assembly:  System.Web (in System.Web.dll)

System.Object
  System.Web.Caching.HeaderElement

[SerializableAttribute]
public sealed class HeaderElement

NameDescription
System_CAPS_pubmethodHeaderElement(String, String)

Initializes a new instance of the HeaderElement class.

NameDescription
System_CAPS_pubpropertyName

Gets the name of an HTTP header that is in the output cache.

System_CAPS_pubpropertyValue

Gets the value of an HTTP header that is in the output cache.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

The HeaderElement class represents the content of an HTTP header in the output cache as a name/value pair. Both the name and the value must be non-null. The collection of all HeaderElement instances for an entry in the output cache is contained in the HeaderElements collection.

.NET Framework
Available since 4.0

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: