Stores serialized information from System.Net.EndPoint derived classes.
See Also: SocketAddress Members
The first 2 bytes of the underlying buffer are reserved for the System.Net.Sockets.AddressFamily enumerated value. When the System.Net.SocketAddress is used to store a serialized System.Net.IPEndPoint, the third and fourth bytes are used to store port number information. The next bytes are used to store the IP address. You can access any information within this underlying byte buffer by referring to its index position; the byte buffer uses zero-based indexing. You can also use the SocketAddress.Family and SocketAddress.Size properties to get the System.Net.Sockets.AddressFamily value and the buffer size, respectively. To view any of this information as a string, use the SocketAddress.ToString method.