SocketAddress SocketAddress SocketAddress SocketAddress Constructors

Definition

Überlädt

SocketAddress(AddressFamily) SocketAddress(AddressFamily) SocketAddress(AddressFamily) SocketAddress(AddressFamily)

Erstellt eine neue Instanz der SocketAddress-Klasse für die angegebene Adressfamilie.Creates a new instance of the SocketAddress class for the given address family.

SocketAddress(AddressFamily, Int32) SocketAddress(AddressFamily, Int32) SocketAddress(AddressFamily, Int32) SocketAddress(AddressFamily, Int32)

Erstellt eine neue Instanz der SocketAddress-Klasse, wobei die angegebene Adressfamilie und die angegebene Puffergröße verwendet werden.Creates a new instance of the SocketAddress class using the specified address family and buffer size.

SocketAddress(AddressFamily) SocketAddress(AddressFamily) SocketAddress(AddressFamily) SocketAddress(AddressFamily)

Erstellt eine neue Instanz der SocketAddress-Klasse für die angegebene Adressfamilie.Creates a new instance of the SocketAddress class for the given address family.

public:
 SocketAddress(System::Net::Sockets::AddressFamily family);
public SocketAddress (System.Net.Sockets.AddressFamily family);
new System.Net.SocketAddress : System.Net.Sockets.AddressFamily -> System.Net.SocketAddress
Public Sub New (family As AddressFamily)

Parameter

family
AddressFamily AddressFamily AddressFamily AddressFamily

Ein AddressFamily-Enumerationswert.An AddressFamily enumerated value.

Hinweise

Diese Überladung wird die Puffergröße des zugrunde liegenden an 32 Bytes.This overload sets the underlying buffer size to 32 bytes.

SocketAddress(AddressFamily, Int32) SocketAddress(AddressFamily, Int32) SocketAddress(AddressFamily, Int32) SocketAddress(AddressFamily, Int32)

Erstellt eine neue Instanz der SocketAddress-Klasse, wobei die angegebene Adressfamilie und die angegebene Puffergröße verwendet werden.Creates a new instance of the SocketAddress class using the specified address family and buffer size.

public:
 SocketAddress(System::Net::Sockets::AddressFamily family, int size);
public SocketAddress (System.Net.Sockets.AddressFamily family, int size);
new System.Net.SocketAddress : System.Net.Sockets.AddressFamily * int -> System.Net.SocketAddress
Public Sub New (family As AddressFamily, size As Integer)

Parameter

family
AddressFamily AddressFamily AddressFamily AddressFamily

Ein AddressFamily-Enumerationswert.An AddressFamily enumerated value.

size
Int32 Int32 Int32 Int32

Die Anzahl der für den zugrunde liegenden Puffer zu reservierenden Bytes.The number of bytes to allocate for the underlying buffer.

Ausnahmen

size ist kleiner als 2.size is less than 2. Diese 2 Bytes werden zum Speichern von family benötigt.These 2 bytes are needed to store family.

Hinweise

Mit dieser Überladung können Sie eine neue Instanz der erstellen die SocketAddress Klasse mit einer bestimmten Puffergröße der zugrunde liegenden.Use this overload to create a new instance of the SocketAddress class with a particular underlying buffer size.

Gilt für: