Java.Nio.Channels.IInterruptibleChannel.Close Method
Closes the channel.

Syntax

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

Exceptions

TypeReason
Java.IO.IOExceptionif an I/O error occurs while closing the channel.

Remarks

Closes the channel.

Any threads that are blocked on I/O operations on this channel will be interrupted with an Java.Nio.Channels.AsynchronousCloseException. Otherwise, this method behaves the same as defined in the Channel interface.

[Android Documentation]

Requirements

Namespace: Java.Nio.Channels
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1