HeaderElement Constructor (String^, String^)
.NET Framework (current version)
Initializes a new instance of the HeaderElement class.
Assembly: System.Web (in System.Web.dll)
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
Available since 4.0
Show: