System::Net::IPAddress::HostToNetworkOrder method

IPAddress::HostToNetworkOrder(int16_t) method

将指定的主机字节序转换为相应的网络字节序。

static int16_t System::Net::IPAddress::HostToNetworkOrder(int16_t host)
参数类型描述
hostint16_t要转换的值。

ReturnValue

对应的网络字节序。

另见

IPAddress::HostToNetworkOrder(int32_t) method

将指定的主机字节序转换为相应的网络字节序。

static int32_t System::Net::IPAddress::HostToNetworkOrder(int32_t host)
参数类型描述
hostint32_t要转换的值。

ReturnValue

对应的网络字节序。

另见

IPAddress::HostToNetworkOrder(int64_t) method

将指定的主机字节序转换为相应的网络字节序。

static int64_t System::Net::IPAddress::HostToNetworkOrder(int64_t host)
参数类型描述
hostint64_t要转换的值。

ReturnValue

对应的网络字节序。

另见