Gets the specified VirtualSocket option setting.
[Visual Basic]
Overridable Overloads Public Sub GetSocketOption( _
ByVal optionLevel As SocketOptionLevel, _
ByVal optionName As SocketOptionName, _
ByVal optionValue As Byte() _
)
Socket options determine the behavior of the current Socket. Upon successful completion of this method, the array specified by the optionValue parameter contains the value of the specified Socket option. When the length of the optionValue array is smaller than the number of bytes required to store the value of the specified Socket option, a SocketException is 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