AsynchronousFileChannel.Open Method

Definition

Overloads

Open(IPath, ICollection<IOpenOption>, IExecutorService, IFileAttribute[])

Opens or creates a file for reading and/or writing, returning an asynchronous file channel to access the file.

Open(IPath, IOpenOption[])

Opens or creates a file for reading and/or writing, returning an asynchronous file channel to access the file.

Open(IPath, ICollection<IOpenOption>, IExecutorService, IFileAttribute[])

Opens or creates a file for reading and/or writing, returning an asynchronous file channel to access the file.

C#
[Android.Runtime.Register("open", "(Ljava/nio/file/Path;Ljava/util/Set;Ljava/util/concurrent/ExecutorService;[Ljava/nio/file/attribute/FileAttribute;)Ljava/nio/channels/AsynchronousFileChannel;", "", ApiSince=26)]
public static Java.Nio.Channels.AsynchronousFileChannel? Open (Java.Nio.FileNio.IPath? file, System.Collections.Generic.ICollection<Java.Nio.FileNio.IOpenOption>? options, Java.Util.Concurrent.IExecutorService? executor, params Java.Nio.FileNio.Attributes.IFileAttribute[]? attrs);

Parameters

file
IPath

The path of the file to open or create

options
ICollection<IOpenOption>

Options specifying how the file is opened

executor
IExecutorService
attrs
IFileAttribute[]

Returns

A new asynchronous file channel

Attributes

Remarks

Java documentation for java.nio.channels.AsynchronousFileChannel.open(java.nio.file.Path, java.nio.file.OpenOption).

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

.NET for Android .NET for Android API 35 and .NET for Android .NET for Android API 34
Product Versions
.NET for Android .NET for Android API 34, .NET for Android API 35

Open(IPath, IOpenOption[])

Opens or creates a file for reading and/or writing, returning an asynchronous file channel to access the file.

C#
[Android.Runtime.Register("open", "(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/nio/channels/AsynchronousFileChannel;", "", ApiSince=26)]
public static Java.Nio.Channels.AsynchronousFileChannel? Open (Java.Nio.FileNio.IPath? file, params Java.Nio.FileNio.IOpenOption[]? options);

Parameters

file
IPath

The path of the file to open or create

options
IOpenOption[]

Options specifying how the file is opened

Returns

A new asynchronous file channel

Attributes

Remarks

Java documentation for java.nio.channels.AsynchronousFileChannel.open(java.nio.file.Path, java.nio.file.OpenOption).

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

.NET for Android .NET for Android API 35 and .NET for Android .NET for Android API 34
Product Versions
.NET for Android .NET for Android API 34, .NET for Android API 35