AsynchronousSocketChannel.SetOption(ISocketOption, Object) Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Imposta il valore di un'opzione socket.
[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
Parametri
- name
- ISocketOption
Opzione socket
- value
- Object
Valore dell'opzione socket. Un valore null può essere un valore valido per alcune opzioni socket.
Valori restituiti
Questo canale
- Attributi
Commenti
per java.nio.channels.AsynchronousSocketChannel.setOption(java.net.SocketOption<T>, T).
Java informazioni di riferimento per java.nio.channels.AsynchronousSocketChannel.setOption.
Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dalla e usati in base ai termini descritti in Creative License 2.5 Attribution License.