HeaderElement Constructor (String^, String^)

.NET Framework (current version)
 

Initializes a new instance of the HeaderElement class.

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

public:
HeaderElement(
	String^ name,
	String^ value
)

Parameters

name
Type: System::String^

The name of the HTTP header.

value
Type: System::String^

The value of the HTTP header.

Exception Condition
ArgumentNullException

name is null.

ArgumentNullException

value is null.

When you create an instance of the HeaderElement class, the value of name must always be a non-null, non-empty string. The value parameter can be an empty string.

.NET Framework
Available since 4.0
Return to top
Show: