HostToNetworkOrder Method

IPAddress.HostToNetworkOrder Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Converts a value from host byte order to network byte order.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Public method Static member HostToNetworkOrder(Int16) Converts a short value from host byte order to network byte order.
Public method Static member HostToNetworkOrder(Int32) Converts an integer value from host byte order to network byte order.
Public method Static member HostToNetworkOrder(Int64) Converts a long value from host byte order to network byte order.
Top

Show:
© 2017 Microsoft