SocketOptionLevel Enumeration

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Defines socket option levels for the Socket..::..SetSocketOption and Socket..::..GetSocketOption methods.

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

public enum SocketOptionLevel

Member nameDescription
SocketSocket options apply to all sockets.
IPSocket options apply only to IP sockets.
IPv6Socket options apply only to IPv6 sockets.
TcpSocket options apply only to TCP sockets.
UdpSocket options apply only to UDP sockets.

The SocketOptionLevel enumeration defines the socket option levels that can be passed to the Socket..::..SetSocketOption and Socket..::..GetSocketOption methods. SocketOptionName enumerated values are grouped by SocketOptionLevel.

Show: