ISecureDirectoryStream.NewByteChannel Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Abre ou cria um arquivo neste diretório, retornando um canal de bytes pesquisável para acessar o arquivo.
[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
Parâmetros
- path
- Object
o caminho do arquivo para abrir ou criar
- options
- ICollection<IOpenOption>
opções que especificam como o arquivo é aberto
- attrs
- IFileAttribute[]
uma lista opcional de atributos a serem definidos atomicamente ao criar o arquivo
Retornos
o canal de bytes que pode ser procurado
- Atributos
Comentários
Partes desta página são modificações baseadas no trabalho criado e compartilhado pelo Android Open Source Project e usadas de acordo com os termos descritos na Licença de Atribuição Creative Commons 2.5.