FileSystemProvider.NewByteChannel 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
開啟或建立檔案,傳回可搜尋的位元組通道以存取檔案。
[Android.Runtime.Register("newByteChannel", "(Ljava/nio/file/Path;Ljava/util/Set;[Ljava/nio/file/attribute/FileAttribute;)Ljava/nio/channels/SeekableByteChannel;", "GetNewByteChannel_Ljava_nio_file_Path_Ljava_util_Set_arrayLjava_nio_file_attribute_FileAttribute_Handler", ApiSince=26)]
public abstract Java.Nio.Channels.ISeekableByteChannel? NewByteChannel (Java.Nio.FileNio.IPath? path, System.Collections.Generic.ICollection<Java.Nio.FileNio.IOpenOption>? options, params Java.Nio.FileNio.Attributes.IFileAttribute[]? attrs);
[<Android.Runtime.Register("newByteChannel", "(Ljava/nio/file/Path;Ljava/util/Set;[Ljava/nio/file/attribute/FileAttribute;)Ljava/nio/channels/SeekableByteChannel;", "GetNewByteChannel_Ljava_nio_file_Path_Ljava_util_Set_arrayLjava_nio_file_attribute_FileAttribute_Handler", ApiSince=26)>]
abstract member NewByteChannel : Java.Nio.FileNio.IPath * System.Collections.Generic.ICollection<Java.Nio.FileNio.IOpenOption> * Java.Nio.FileNio.Attributes.IFileAttribute[] -> Java.Nio.Channels.ISeekableByteChannel
參數
- path
- IPath
要開啟或建立之檔案的路徑
- options
- ICollection<IOpenOption>
指定檔案開啟方式的選項
- attrs
- IFileAttribute[]
建立檔案時要以不可部分完成方式設定的選擇性檔案屬性清單
傳回
新的可搜尋位元組通道
- 屬性
備註
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。