AsynchronousFileChannel.Open Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |
Opens or creates a file for reading and/or writing, returning an asynchronous file channel to access the file.
[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);
[<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)>]
static member Open : Java.Nio.FileNio.IPath * System.Collections.Generic.ICollection<Java.Nio.FileNio.IOpenOption> * Java.Util.Concurrent.IExecutorService * Java.Nio.FileNio.Attributes.IFileAttribute[] -> Java.Nio.Channels.AsynchronousFileChannel
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
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 |
Opens or creates a file for reading and/or writing, returning an asynchronous file channel to access the file.
[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);
[<Android.Runtime.Register("open", "(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/nio/channels/AsynchronousFileChannel;", "", ApiSince=26)>]
static member Open : Java.Nio.FileNio.IPath * Java.Nio.FileNio.IOpenOption[] -> Java.Nio.Channels.AsynchronousFileChannel
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
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 |