System::Net::Dns 类

Dns class

提供用于处理 DNS 的方法。

class Dns : public System::Object

方法

方法描述
static BeginGetHostAddresses(String, AsyncCallback, System::SharedPtr<Object>)使用包含主机名或 IP 地址的指定字符串,启动异步操作以创建新的 IPHostEntry-class 实例。
static BeginGetHostByName(String, AsyncCallback, System::SharedPtr<Object>)使用指定的主机名,启动异步操作以创建新的 IPHostEntry-class 实例。
static BeginGetHostEntry(String, AsyncCallback, System::SharedPtr<Object>)使用包含主机名或 IP 地址的指定字符串,启动异步操作以创建新的 IPHostEntry-class 实例。
static BeginGetHostEntry(System::SharedPtr<IPAddress>, AsyncCallback, System::SharedPtr<Object>)使用指定的 IP 地址,启动异步操作以创建新的 IPHostEntry-class 实例。
static BeginResolve(String, AsyncCallback, System::SharedPtr<Object>)使用指定的主机名,启动异步操作以创建新的 IPHostEntry-class 实例。
Dns()已删除的默认构造函数。
static EndGetHostAddresses(System::SharedPtr<IAsyncResult>)等待指定的创建新 IPHostEntry-class 实例的异步操作完成。
static EndGetHostByName(System::SharedPtr<IAsyncResult>)等待指定的创建新 IPHostEntry-class 实例的异步操作完成。
static EndGetHostEntry(System::SharedPtr<IAsyncResult>)等待指定的创建新 IPHostEntry-class 实例的异步操作完成。
static EndResolve(System::SharedPtr<IAsyncResult>)等待指定的创建新 IPHostEntry-class 实例的异步操作完成。
static GetHostAddresses(String)返回指定主机名或 IP 地址的 IP 地址集合。
static GetHostByAddress(String)使用指定的 IP 地址字符串表示,创建新的 IPHostEntry-class 实例。
static GetHostByAddress(System::SharedPtr<IPAddress>)使用指定的 IP 地址,创建新的 IPHostEntry-class 实例。
static GetHostByName(String)RTTI 信息。
static GetHostEntry(String)使用包含主机名或 IP 地址的指定字符串,创建新的 IPHostEntry-class 实例。
static GetHostEntry(System::SharedPtr<IPAddress>)使用指定的 IP 地址,创建新的 IPHostEntry-class 实例。
static GetHostName()返回本地机器的主机名。
static Resolve(String)使用指定的主机名创建一个新的 IPHostEntry-class 实例。

另见