Name

SocketAddress

Synopsis

This type defines an address of a particular socket; in particular, it defines the family of networking protocols to which the address belongs (for example, IP or IPv6), as well as the size of the address itself. This type can be safely ignored for most high-level (and, arguably, most low-level) networking operations.

Public Class SocketAddress
                  ' Public Constructors
   Public Sub New(
        ByVal family As System.Net.Sockets.AddressFamily) 
   Public Sub New(
        ByVal family As System.Net.Sockets.AddressFamily, 
        ByVal size As Integer) 
' Public Instance Properties
   Public ReadOnly Property Family As AddressFamily  
   Public Default Property Item(
        ByVal offset As Integer) As Byte  
   Public ReadOnly Property Size As Integer  
' Public Instance Methods
   Overrides Public Function Equals(
        ByVal comparand As Object) As Boolean  
   Overrides Public Function GetHashCode() As Integer  
   Overrides Public Function ToString() As String  
End Class

Returned By

EndPoint.Serialize()

Passed To

EndPoint.Create()

Get VB.NET Core Classes in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.