SocketChannel.SetOption(ISocketOption, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Added in 1.
[Android.Runtime.Register("setOption", "(Ljava/net/SocketOption;Ljava/lang/Object;)Ljava/nio/channels/SocketChannel;", "GetSetOption_Ljava_net_SocketOption_Ljava_lang_Object_Handler", ApiSince=24)]
[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]
public abstract Java.Nio.Channels.SocketChannel? SetOption(Java.Net.ISocketOption? name, Java.Lang.Object? value);
[<Android.Runtime.Register("setOption", "(Ljava/net/SocketOption;Ljava/lang/Object;)Ljava/nio/channels/SocketChannel;", "GetSetOption_Ljava_net_SocketOption_Ljava_lang_Object_Handler", ApiSince=24)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]
abstract member SetOption : Java.Net.ISocketOption * Java.Lang.Object -> Java.Nio.Channels.SocketChannel
Parameters
- name
- ISocketOption
The socket option
- value
- Object
The value of the socket option. A value of null may be a valid value for some socket options.
Returns
This channel
- Attributes
Remarks
Added in 1.7.
Java documentation for java.nio.channels.SocketChannel.setOption(java.net.SocketOption<T>, T).
Java reference for java.nio.channels.SocketChannel.setOption.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.