Socket.GetSocketOption Method


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Returns the value of a Socket option.

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

System_CAPS_pubmethodGetSocketOption(SocketOptionLevel, SocketOptionName)

Returns the value of a specified Socket option, represented as an object.

System_CAPS_pubmethodGetSocketOption(SocketOptionLevel, SocketOptionName, Byte[])

Returns the specified Socket option setting, represented as a byte array.

System_CAPS_pubmethodGetSocketOption(SocketOptionLevel, SocketOptionName, Int32)

Returns the value of the specified Socket option in an array.

Return to top