ViaHeaderValue Constructors
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the ViaHeaderValue class.
ViaHeaderValue(String, String) |
Initializes a new instance of the ViaHeaderValue class. |
ViaHeaderValue(String, String, String) |
Initializes a new instance of the ViaHeaderValue class. |
ViaHeaderValue(String, String, String, String) |
Initializes a new instance of the ViaHeaderValue class. |
- Source:
- ViaHeaderValue.cs
- Source:
- ViaHeaderValue.cs
- Source:
- ViaHeaderValue.cs
Initializes a new instance of the ViaHeaderValue class.
public:
ViaHeaderValue(System::String ^ protocolVersion, System::String ^ receivedBy);
public ViaHeaderValue(string protocolVersion, string receivedBy);
new System.Net.Http.Headers.ViaHeaderValue : string * string -> System.Net.Http.Headers.ViaHeaderValue
Public Sub New (protocolVersion As String, receivedBy As String)
Parameters
- protocolVersion
- String
The protocol version of the received protocol.
- receivedBy
- String
The host and port that the request or response was received by.
Applies to
.NET 10 and other versions
Product | Versions |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Framework | 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 1.1, 1.2, 1.3, 1.4, 1.6, 2.0, 2.1 |
UWP | 10.0 |
- Source:
- ViaHeaderValue.cs
- Source:
- ViaHeaderValue.cs
- Source:
- ViaHeaderValue.cs
Initializes a new instance of the ViaHeaderValue class.
public:
ViaHeaderValue(System::String ^ protocolVersion, System::String ^ receivedBy, System::String ^ protocolName);
public ViaHeaderValue(string protocolVersion, string receivedBy, string protocolName);
public ViaHeaderValue(string protocolVersion, string receivedBy, string? protocolName);
new System.Net.Http.Headers.ViaHeaderValue : string * string * string -> System.Net.Http.Headers.ViaHeaderValue
Public Sub New (protocolVersion As String, receivedBy As String, protocolName As String)
Parameters
- protocolVersion
- String
The protocol version of the received protocol.
- receivedBy
- String
The host and port that the request or response was received by.
- protocolName
- String
The protocol name of the received protocol.
Applies to
.NET 10 and other versions
Product | Versions |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Framework | 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 1.1, 1.2, 1.3, 1.4, 1.6, 2.0, 2.1 |
UWP | 10.0 |
- Source:
- ViaHeaderValue.cs
- Source:
- ViaHeaderValue.cs
- Source:
- ViaHeaderValue.cs
Initializes a new instance of the ViaHeaderValue class.
public:
ViaHeaderValue(System::String ^ protocolVersion, System::String ^ receivedBy, System::String ^ protocolName, System::String ^ comment);
public ViaHeaderValue(string protocolVersion, string receivedBy, string protocolName, string comment);
public ViaHeaderValue(string protocolVersion, string receivedBy, string? protocolName, string? comment);
new System.Net.Http.Headers.ViaHeaderValue : string * string * string * string -> System.Net.Http.Headers.ViaHeaderValue
Public Sub New (protocolVersion As String, receivedBy As String, protocolName As String, comment As String)
Parameters
- protocolVersion
- String
The protocol version of the received protocol.
- receivedBy
- String
The host and port that the request or response was received by.
- protocolName
- String
The protocol name of the received protocol.
- comment
- String
The comment field used to identify the software of the recipient proxy or gateway.
Applies to
.NET 10 and other versions
Product | Versions |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Framework | 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 1.1, 1.2, 1.3, 1.4, 1.6, 2.0, 2.1 |
UWP | 10.0 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: