다음을 통해 공유


CloudFile.CloseHandleSegmentedAsync Method

Definition

Returns a task that performs an asynchronous operation to close the specified SMB handle on this file.

[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)

Parameters

handleId
String

Id of the handle, "*" if all handles on the file.

token
FileContinuationToken

Continuation token for when the handle takes exceedingly long to find.

accessCondition
AccessCondition

An AccessCondition object that represents the access conditions for the file. If null, no condition is used.

options
FileRequestOptions

A FileRequestOptions object that specifies additional options for the request.

operationContext
OperationContext

An OperationContext object that represents the context for the current operation.

cancellationToken
Nullable<CancellationToken>

A CancellationToken to observe while waiting for a task to complete.

Returns

A Task<TResult> object that represents the current operation.

Attributes

Applies to