Language

FileSystemProvider.NewAsynchronousFileChannel メソッド

定義

読み取りまたは書き込み用のファイルを開くか作成し、ファイルにアクセスするための非同期ファイル チャネルを返します。

[Android.Runtime.Register("newAsynchronousFileChannel", "(Ljava/nio/file/Path;Ljava/util/Set;Ljava/util/concurrent/ExecutorService;[Ljava/nio/file/attribute/FileAttribute;)Ljava/nio/channels/AsynchronousFileChannel;", "GetNewAsynchronousFileChannel_Ljava_nio_file_Path_Ljava_util_Set_Ljava_util_concurrent_ExecutorService_arrayLjava_nio_file_attribute_FileAttribute_Handler", ApiSince=26)]
public virtual Java.Nio.Channels.AsynchronousFileChannel? NewAsynchronousFileChannel(Java.Nio.FileNio.IPath? path, System.Collections.Generic.ICollection<Java.Nio.FileNio.IOpenOption>? options, Java.Util.Concurrent.IExecutorService? executor, params Java.Nio.FileNio.Attributes.IFileAttribute[]? attrs);
[<Android.Runtime.Register("newAsynchronousFileChannel", "(Ljava/nio/file/Path;Ljava/util/Set;Ljava/util/concurrent/ExecutorService;[Ljava/nio/file/attribute/FileAttribute;)Ljava/nio/channels/AsynchronousFileChannel;", "GetNewAsynchronousFileChannel_Ljava_nio_file_Path_Ljava_util_Set_Ljava_util_concurrent_ExecutorService_arrayLjava_nio_file_attribute_FileAttribute_Handler", ApiSince=26)>]
abstract member NewAsynchronousFileChannel : 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
override this.NewAsynchronousFileChannel : 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

パラメーター

path
IPath

開くか作成するファイルのパス

options
ICollection<IOpenOption>

ファイルの開き方を指定するオプション

executor
IExecutorService

チャネルを既定のスレッド プールに関連付けるスレッド プールまたはnull

attrs
IFileAttribute[]

ファイルの作成時にアトミックに設定するファイル属性の省略可能なリスト

戻り値

新しい非同期ファイル チャネル

属性

注釈

Javaドキュメント。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象