Socket.SetSocketOption Method (SocketOptionLevel, SocketOptionName, Boolean)
Sets the specified Boolean configuration option for the current socket.
Namespace: System.Net.Sockets
Assembly: System (in system.dll)
Syntax
public void SetSocketOption (
SocketOptionLeveloptionLevel,
SocketOptionNameoptionName,
booloptionValue
)
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
A Boolean value that enables or disables the specified configuration option. Set this parameter to true to enable the option; set it to false to disable the option.
Remarks
Use the GetSocketOption method to retrieve the value of a configuration option.
Version Information
Available in .NET Micro Framework version 2.0, 2.5