Sets the specified option to the specified value.
[Visual Basic]
Overridable Overloads Public Sub SetSocketOption( _
ByVal optionLevel As SocketOptionLevel, _
ByVal optionName As SocketOptionName, _
ByVal optionValue As Byte() _
)
Socket options determine the behavior of the current Socket. Use this overload to set those Socket options that require a byte array as an option value.
Windows 98, Windows NT 4.0 Platform Note: You must call the Bind method before using AddMembership as the optionName parameter.
Exception Type | Condition |
---|---|
SocketException | The VirtualSocket has been closed. |
ObjectDisposedException | The VirtualSocket has been closed. |
VirtualSocket Class | VirtualSocket Members | Org.Mentalis.Security.Ssl Namespace | VirtualSocket.SetSocketOption Overload List