ViaHeaderValue 类
定义
表示 Via 标头的值。Represents the value of a Via header.
public ref class ViaHeaderValue
public ref class ViaHeaderValue : ICloneable
public class ViaHeaderValue
public class ViaHeaderValue : ICloneable
type ViaHeaderValue = class
type ViaHeaderValue = class
interface ICloneable
Public Class ViaHeaderValue
Public Class ViaHeaderValue
Implements ICloneable
- 继承
-
ViaHeaderValue
- 实现
构造函数
| ViaHeaderValue(String, String) |
初始化 ViaHeaderValue 类的新实例。Initializes a new instance of the ViaHeaderValue class. |
| ViaHeaderValue(String, String, String) |
初始化 ViaHeaderValue 类的新实例。Initializes a new instance of the ViaHeaderValue class. |
| ViaHeaderValue(String, String, String, String) |
初始化 ViaHeaderValue 类的新实例。Initializes a new instance of the ViaHeaderValue class. |
属性
| Comment |
获取用于标识收件人代理软件或网关软件的注释字段。Gets the comment field used to identify the software of the recipient proxy or gateway. |
| ProtocolName |
获取接收的协议的名称。Gets the protocol name of the received protocol. |
| ProtocolVersion |
获取接收的协议的版本。Gets the protocol version of the received protocol. |
| ReceivedBy |
获取接收请求或响应的主机和端口。Gets the host and port that the request or response was received by. |
方法
| Equals(Object) |
确定指定的 Object 是否等于当前的 ViaHeaderValue 对象。Determines whether the specified Object is equal to the current ViaHeaderValue object. |
| GetHashCode() |
充当 ViaHeaderValue 对象的哈希函数。Serves as a hash function for an ViaHeaderValue object. |
| GetType() |
获取当前实例的 Type。Gets the Type of the current instance. (继承自 Object) |
| MemberwiseClone() |
创建当前 Object 的浅表副本。Creates a shallow copy of the current Object. (继承自 Object) |
| Parse(String) |
将字符串转换为 ViaHeaderValue 实例。Converts a string to an ViaHeaderValue instance. |
| ToString() |
返回表示当前 ViaHeaderValue 对象的字符串。Returns a string that represents the current ViaHeaderValue object. |
| TryParse(String, ViaHeaderValue) |
确定一个字符串是否为有效的 ViaHeaderValue 信息。Determines whether a string is valid ViaHeaderValue information. |
显式接口实现
| ICloneable.Clone() |
创建作为当前 ViaHeaderValue 实例副本的新对象。Creates a new object that is a copy of the current ViaHeaderValue instance. |