Socket.SetSocketOption Method (SocketOptionLevel, SocketOptionName, Object)
Sets the specified integer configuration option for the current socket.
Namespace: System.Net.Sockets
Assembly: System (in system.dll)
Syntax
public void SetSocketOption (
SocketOptionLevel optionLevel,
SocketOptionName optionName,
Object optionValue
)
Parameters
- optionLevel
A value of the SocketOptionLevel enumeration that specifies the protocol to which the socket configuration option applies. - optionName
A value of the SocketOptionName enumeration that specifies the socket configuration option to be set. - optionValue
The value to which the specified configuration option is set.
Remarks
Use the GetSocketOption method to retrieve the value of a configuration option.
Version Information
Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, 4.1, and 4.2.