Compartilhar via


CloudFile.CloseHandleSegmentedAsync Método

Definição

Retorna uma tarefa que executa uma operação assíncrona para fechar o identificador SMB especificado nesse arquivo.

[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task<Microsoft.Azure.Storage.File.CloseFileHandleResultSegment> CloseHandleSegmentedAsync (string handleId, Microsoft.Azure.Storage.File.FileContinuationToken token = default, Microsoft.Azure.Storage.AccessCondition accessCondition = default, Microsoft.Azure.Storage.File.FileRequestOptions options = default, Microsoft.Azure.Storage.OperationContext operationContext = default, System.Threading.CancellationToken? cancellationToken = default);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member CloseHandleSegmentedAsync : string * Microsoft.Azure.Storage.File.FileContinuationToken * Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.File.FileRequestOptions * Microsoft.Azure.Storage.OperationContext * Nullable<System.Threading.CancellationToken> -> System.Threading.Tasks.Task<Microsoft.Azure.Storage.File.CloseFileHandleResultSegment>
override this.CloseHandleSegmentedAsync : string * Microsoft.Azure.Storage.File.FileContinuationToken * Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.File.FileRequestOptions * Microsoft.Azure.Storage.OperationContext * Nullable<System.Threading.CancellationToken> -> System.Threading.Tasks.Task<Microsoft.Azure.Storage.File.CloseFileHandleResultSegment>
Public Overridable Function CloseHandleSegmentedAsync (handleId As String, Optional token As FileContinuationToken = Nothing, Optional accessCondition As AccessCondition = Nothing, Optional options As FileRequestOptions = Nothing, Optional operationContext As OperationContext = Nothing, Optional cancellationToken As Nullable(Of CancellationToken) = Nothing) As Task(Of CloseFileHandleResultSegment)

Parâmetros

handleId
String

ID do identificador , "*" se todos os identificadores no arquivo.

token
FileContinuationToken

Token de continuação para quando o identificador leva muito tempo para ser localizado.

accessCondition
AccessCondition

Um objeto AccessCondition que representa condições de acesso do arquivo. Se for null, nenhuma condição é usada.

options
FileRequestOptions

Um objeto FileRequestOptions que especifica opções adicionais para a solicitação.

operationContext
OperationContext

Um objeto OperationContext que representa o contexto da operação atual.

cancellationToken
Nullable<CancellationToken>

Um CancellationToken a ser observado ao aguardar a conclusão da tarefa.

Retornos

Um objeto Task<TResult> que representa a operação atual.

Atributos

Aplica-se a