DnsEndPoint 類別
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將網路端點表示為主機名或IP位址和埠號碼的字串表示。
public ref class DnsEndPoint : System::Net::EndPoint
C#
public class DnsEndPoint : System.Net.EndPoint
type DnsEndPoint = class
inherit EndPoint
Public Class DnsEndPoint
Inherits EndPoint
- 繼承
DnsEndPoint 類別包含應用程式連線到主機上服務所需的主機名或IP位址和遠端埠資訊。 藉由結合服務的主機名或IP位址和埠號碼,DnsEndPoint 類別會形成服務的連接點。
Dns |
使用IP位址、埠號碼和位址系列的主機名或字串表示,初始化 DnsEndPoint 類別的新實例。 |
Dns |
使用IP位址和埠號碼的主機名或字串表示,初始化 DnsEndPoint 類別的新實例。 |
Address |
取得因特網通訊協定 (IP) 位址系列。 |
Host |
取得主機之因特網通訊協定 (IP) 位址的主機名或字串表示。 |
Port |
取得 DnsEndPoint的埠號碼。 |
Create(Socket |
從 SocketAddress 實例建立 EndPoint 實例。 (繼承來源 EndPoint) |
Equals(Object) |
比較兩個 DnsEndPoint 物件。 |
Get |
傳回 DnsEndPoint的哈希值。 |
Get |
取得目前實例的 Type。 (繼承來源 Object) |
Memberwise |
建立目前 Object的淺層複本。 (繼承來源 Object) |
Serialize() |
將端點資訊串行化為 SocketAddress 實例。 (繼承來源 EndPoint) |
To |
傳回ip位址的主機名稱或字串表示,以及 DnsEndPoint的埠號碼。 |
產品 | 版本 |
---|---|
.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 |
.NET Framework | 4.0, 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.3, 1.4, 1.6, 2.0, 2.1 |
UWP | 10.0 |