AsynchronousSocketChannel.Close Method

Definition

Closes this channel.

[Android.Runtime.Register("close", "()V", "GetCloseHandler", ApiSince=26)]
public abstract void Close ();
[<Android.Runtime.Register("close", "()V", "GetCloseHandler", ApiSince=26)>]
abstract member Close : unit -> unit

Implements

Attributes

Remarks

Closes this channel.

Any outstanding asynchronous operations upon this channel will complete with the exception AsynchronousCloseException. After a channel is closed, further attempts to initiate asynchronous I/O operations complete immediately with cause ClosedChannelException.

This method otherwise behaves exactly as specified by the Channel interface.

Java documentation for java.nio.channels.AsynchronousChannel.close().

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