ISecureDirectoryStream.NewByteChannel Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Ouvre ou crée un fichier dans ce répertoire, retournant un canal d’octets pouvant être recherché pour accéder au fichier.
[Android.Runtime.Register("newByteChannel", "(Ljava/lang/Object;Ljava/util/Set;[Ljava/nio/file/attribute/FileAttribute;)Ljava/nio/channels/SeekableByteChannel;", "GetNewByteChannel_Ljava_lang_Object_Ljava_util_Set_arrayLjava_nio_file_attribute_FileAttribute_Handler:Java.Nio.FileNio.ISecureDirectoryStreamInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)]
public Java.Nio.Channels.ISeekableByteChannel? NewByteChannel(Java.Lang.Object? path, System.Collections.Generic.ICollection<Java.Nio.FileNio.IOpenOption>? options, params Java.Nio.FileNio.Attributes.IFileAttribute[]? attrs);
[<Android.Runtime.Register("newByteChannel", "(Ljava/lang/Object;Ljava/util/Set;[Ljava/nio/file/attribute/FileAttribute;)Ljava/nio/channels/SeekableByteChannel;", "GetNewByteChannel_Ljava_lang_Object_Ljava_util_Set_arrayLjava_nio_file_attribute_FileAttribute_Handler:Java.Nio.FileNio.ISecureDirectoryStreamInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
abstract member NewByteChannel : Java.Lang.Object * System.Collections.Generic.ICollection<Java.Nio.FileNio.IOpenOption> * Java.Nio.FileNio.Attributes.IFileAttribute[] -> Java.Nio.Channels.ISeekableByteChannel
Paramètres
- path
- Object
chemin d’accès du fichier à ouvrir ou créer
- options
- ICollection<IOpenOption>
options spécifiant la façon dont le fichier est ouvert
- attrs
- IFileAttribute[]
une liste facultative d’attributs à définir atomiquement lors de la création du fichier
Retours
canal d’octets pouvant être recherché
- Attributs
Remarques
Les parties de cette page sont des modifications basées sur le travail créé et partagé par Android Open Source et utilisées en fonction des termes décrits dans la Creative Commons 2.5 Attribution License.