IChannel.Close Method

Definition

Closes this channel.

[Android.Runtime.Register("close", "()V", "GetCloseHandler:Java.Nio.Channels.IChannelInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void Close ();
[<Android.Runtime.Register("close", "()V", "GetCloseHandler:Java.Nio.Channels.IChannelInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member Close : unit -> unit

Implements

Attributes

Exceptions

if a problem occurs closing the channel.

Remarks

Closes this channel.

After a channel is closed, any further attempt to invoke I/O operations upon it will cause a ClosedChannelException to be thrown.

If this channel is already closed then invoking this method has no effect.

This method may be invoked at any time. If some other thread has already invoked it, however, then another invocation will block until the first invocation is complete, after which it will return without effect.

Java documentation for java.nio.channels.Channel.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