WarningHeaderValue Constructor (Int32, String^, String^, DateTimeOffset)

.NET Framework (current version)
 

Initializes a new instance of the WarningHeaderValue class.

Namespace:   System.Net.Http.Headers
Assembly:  System.Net.Http (in System.Net.Http.dll)

public:
WarningHeaderValue(
	int code,
	String^ agent,
	String^ text,
	DateTimeOffset date
)

Parameters

code
Type: System::Int32

The specific warning code.

agent
Type: System::String^

The host that attached the warning.

text
Type: System::String^

A quoted-string containing the warning text.

date
Type: System::DateTimeOffset

The date/time stamp of the warning.

Universal Windows Platform
Available since 8
.NET Framework
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Return to top
Show: