System.Net.Sockets.SocketOptionLevel Enumeration

Defines socket option levels for the Socket.SetSocketOption(SocketOptionLevel, SocketOptionName, int) and Socket.GetSocketOption(SocketOptionLevel, SocketOptionName) methods.

Syntax

public enum SocketOptionLevel

Remarks

The System.Net.Sockets.SocketOptionLevel enumeration defines the socket option levels that can be passed to the Socket.SetSocketOption(SocketOptionLevel, SocketOptionName, int) and Socket.GetSocketOption(SocketOptionLevel, SocketOptionName) methods. System.Net.Sockets.SocketOptionName enumerated values are grouped by System.Net.Sockets.SocketOptionLevel.

Note   To use SocketOptionLevel.IPv6 on Windows XP, install Advance Networking Pack for Windows XP.

Members

Member NameDescription
IP

System.Net.Sockets.Socket options apply only to IP sockets.

IPv6

System.Net.Sockets.Socket options apply only to IPv6 sockets.

Socket

System.Net.Sockets.Socket options apply to all sockets.

Tcp

System.Net.Sockets.Socket options apply only to TCP sockets.

Udp

System.Net.Sockets.Socket options apply only to UDP sockets.

Requirements

Namespace: System.Net.Sockets
Assembly: System (in System.dll)
Assembly Versions: 1.0.x.x, 1.0.5000.0, 2.0.0.0, 4.0.0.0