Returns the value of the specified Socket option and returns in an array.
[Visual Basic]
Overridable Overloads Public Function GetSocketOption( _
ByVal optionLevel As SocketOptionLevel, _
ByVal optionName As SocketOptionName, _
ByVal optionLength As Integer _
) As Byte()
An array of bytes containing the value of the socket option.
The optionLength parameter sets the maximum size of the returned byte array. If the option value requires fewer bytes, the array will contain only that many bytes. If the option value requires more bytes, a SocketException will be thrown.
Exception Type | Condition |
---|---|
SocketException | An operating system error occurs while accessing the VirtualSocket. |
ObjectDisposedException | The VirtualSocket has been closed. |
VirtualSocket Class | VirtualSocket Members | Org.Mentalis.Security.Ssl Namespace | VirtualSocket.GetSocketOption Overload List