GetAddressBytes Method
Collapse the table of content
Expand the table of content

IPAddress.GetAddressBytes Method

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

Provides a copy of the IPAddress as an array of bytes.

Namespace:  System.Net
Assembly:  System.Net (in System.Net.dll)

'Declaration
Public Function GetAddressBytes As Byte()

Return Value

Type: System.Byte ()
An array of bytes that represents the IPAddress instance.

The Byte array returned by this method is assumed to be in network byte order. The GetAddressBytes method can be used with instances of the IPAddress class that represent either an IPv4 address or an IPv6 address.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2017 Microsoft