ViaHeaderValue 构造函数

定义

初始化 ViaHeaderValue 类的新实例。

重载

ViaHeaderValue(String, String)

初始化 ViaHeaderValue 类的新实例。

ViaHeaderValue(String, String, String)

初始化 ViaHeaderValue 类的新实例。

ViaHeaderValue(String, String, String, String)

初始化 ViaHeaderValue 类的新实例。

ViaHeaderValue(String, String)

Source:
ViaHeaderValue.cs
Source:
ViaHeaderValue.cs
Source:
ViaHeaderValue.cs

初始化 ViaHeaderValue 类的新实例。

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)

参数

protocolVersion
String

接受协议的协议版本。

receivedBy
String

接收请求或响应的主机和端口。

适用于

ViaHeaderValue(String, String, String)

Source:
ViaHeaderValue.cs
Source:
ViaHeaderValue.cs
Source:
ViaHeaderValue.cs

初始化 ViaHeaderValue 类的新实例。

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)

参数

protocolVersion
String

接受协议的协议版本。

receivedBy
String

接收请求或响应的主机和端口。

protocolName
String

接受协议的协议名称。

适用于

ViaHeaderValue(String, String, String, String)

Source:
ViaHeaderValue.cs
Source:
ViaHeaderValue.cs
Source:
ViaHeaderValue.cs

初始化 ViaHeaderValue 类的新实例。

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)

参数

protocolVersion
String

接受协议的协议版本。

receivedBy
String

接收请求或响应的主机和端口。

protocolName
String

接受协议的协议名称。

comment
String

用于标识收件人代理软件或网关软件的注释字段。

适用于