다음을 통해 공유


AsynchronousSocketChannel.SetOption(ISocketOption, Object) Method

Definition

[Android.Runtime.Register("setOption", "(Ljava/net/SocketOption;Ljava/lang/Object;)Ljava/nio/channels/AsynchronousSocketChannel;", "GetSetOption_Ljava_net_SocketOption_Ljava_lang_Object_Handler", ApiSince=26)]
[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]
public abstract Java.Nio.Channels.AsynchronousSocketChannel? SetOption (Java.Net.ISocketOption? name, Java.Lang.Object? value);
[<Android.Runtime.Register("setOption", "(Ljava/net/SocketOption;Ljava/lang/Object;)Ljava/nio/channels/AsynchronousSocketChannel;", "GetSetOption_Ljava_net_SocketOption_Ljava_lang_Object_Handler", ApiSince=26)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]
abstract member SetOption : Java.Net.ISocketOption * Java.Lang.Object -> Java.Nio.Channels.AsynchronousSocketChannel

Parameters

value
Object

Returns

Attributes

Remarks

Java documentation for java.nio.channels.AsynchronousSocketChannel.setOption(java.net.SocketOption<T>, T).

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.

Applies to