ViaHeaderValue 類別

定義

代表 Via 標頭的值。Represents the value of a Via header.

public ref class ViaHeaderValue : ICloneable
public class ViaHeaderValue : ICloneable
type ViaHeaderValue = class
    interface ICloneable
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

取得用來識別收件者 Proxy 或閘道之軟體的註解欄位。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()

取得目前執行個體的 TypeGets 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.

適用於