## IPAddress::HostToNetworkOrder(int16_t) method


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

```cpp
static int16_t System::Net::IPAddress::HostToNetworkOrder(int16_t host)
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| host | int16_t | 要转换的值。 |

### ReturnValue

相应的网络字节序。

## 另见

* Class [IPAddress](../)
* Namespace [System::Net](../../)
* Library [Aspose.Page for C++](../../../)
## IPAddress::HostToNetworkOrder(int32_t) method


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

```cpp
static int32_t System::Net::IPAddress::HostToNetworkOrder(int32_t host)
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| host | int32_t | 要转换的值。 |

### ReturnValue

相应的网络字节序。

## 另见

* Class [IPAddress](../)
* Namespace [System::Net](../../)
* Library [Aspose.Page for C++](../../../)
## IPAddress::HostToNetworkOrder(int64_t) method


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

```cpp
static int64_t System::Net::IPAddress::HostToNetworkOrder(int64_t host)
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| host | int64_t | 要转换的值。 |

### ReturnValue

相应的网络字节序。

## 另见

* Class [IPAddress](../)
* Namespace [System::Net](../../)
* Library [Aspose.Page for C++](../../../)
