語言

AsynchronousFileChannel.Open 方法

定義

多載

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

開啟或建立一個用於讀取和/或寫入的檔案,並回傳一個非同步的檔案通道以存取該檔案。

Open(IPath, IOpenOption[])

開啟或建立一個用於讀取和/或寫入的檔案,並回傳一個非同步的檔案通道以存取該檔案。

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

開啟或建立一個用於讀取和/或寫入的檔案,並回傳一個非同步的檔案通道以存取該檔案。

[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

參數

file
IPath

檔案開啟或建立的路徑

options
ICollection<IOpenOption>

指定檔案開啟方式的選項

executor
IExecutorService
attrs
IFileAttribute[]

傳回

一個新的非同步檔案通道

屬性

備註

Java 文件 java.nio.channels.AsynchronousFileChannel.open(java.nio.file.Path, java.nio.file.OpenOption)

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

Open(IPath, IOpenOption[])

開啟或建立一個用於讀取和/或寫入的檔案,並回傳一個非同步的檔案通道以存取該檔案。

[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

參數

file
IPath

檔案開啟或建立的路徑

options
IOpenOption[]

指定檔案開啟方式的選項

傳回

一個新的非同步檔案通道

屬性

備註

Java 文件 java.nio.channels.AsynchronousFileChannel.open(java.nio.file.Path, java.nio.file.OpenOption)

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於