다음을 통해 공유


IInterruptibleChannel.Close Method

Definition

Closes this channel.

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

Implements

Attributes

Exceptions

if an I/O error occurs while closing the channel.

Remarks

Closes this channel.

Any thread currently blocked in an I/O operation upon this channel will receive an AsynchronousCloseException.

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

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