Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

SocketAddress Constructor

.NET Framework 1.1

Creates a new instance of the SocketAddress class.

Overload List

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

Supported by the .NET Compact Framework.

[Visual Basic] Public Sub New(AddressFamily)
[C#] public SocketAddress(AddressFamily);
[C++] public: SocketAddress(AddressFamily);
[JScript] public function SocketAddress(AddressFamily);

Creates a new instance of the SocketAddress class using the specified address family and buffer size.

Supported by the .NET Compact Framework.

[Visual Basic] Public Sub New(AddressFamily, Integer)
[C#] public SocketAddress(AddressFamily, int);
[C++] public: SocketAddress(AddressFamily, int);
[JScript] public function SocketAddress(AddressFamily, int);

See Also

SocketAddress Class | SocketAddress Members | System.Net Namespace

Show:
© 2015 Microsoft