SocketAddress Constructor (AddressFamily)
Collapse the table of content
Expand the table of content

SocketAddress Constructor (AddressFamily)

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

Creates a new instance of the SocketAddress class for the given address family.

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

'Declaration
Public Sub New ( _
	family As AddressFamily _
)

Parameters

family
Type: System.Net.Sockets.AddressFamily
An AddressFamily enumerated value.

This constructor sets the Size property to 32 bytes. The Size property is less than the associated buffer size by a fixed amount.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2017 Microsoft