CloudFileDirectory.CloseHandleSegmentedAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CloseHandleSegmentedAsync(String, FileContinuationToken, Nullable<Boolean>, AccessCondition, FileRequestOptions, OperationContext, Nullable<CancellationToken>) |
Returns a task that performs an asynchronous operation to close the specified SMB handle on this directory. |
CloseHandleSegmentedAsync(UInt64, FileContinuationToken, Nullable<Boolean>, AccessCondition, FileRequestOptions, OperationContext, Nullable<CancellationToken>) |
Returns a task that performs an asynchronous operation to close the specified SMB handle on this directory. |
CloseHandleSegmentedAsync(String, FileContinuationToken, Nullable<Boolean>, AccessCondition, FileRequestOptions, OperationContext, Nullable<CancellationToken>)
Returns a task that performs an asynchronous operation to close the specified SMB handle on this directory.
[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, bool? recursive = 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 * Nullable<bool> * 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 * Nullable<bool> * 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 recursive As Nullable(Of Boolean) = 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 closing the handle takes exceedingly long.
Whether to recurse through this directory's sub files and folders. A lack of value is interpreted as false.
- 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
CloseHandleSegmentedAsync(UInt64, FileContinuationToken, Nullable<Boolean>, AccessCondition, FileRequestOptions, OperationContext, Nullable<CancellationToken>)
Returns a task that performs an asynchronous operation to close the specified SMB handle on this directory.
[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task<Microsoft.Azure.Storage.File.CloseFileHandleResultSegment> CloseHandleSegmentedAsync (ulong handleId, Microsoft.Azure.Storage.File.FileContinuationToken token = default, bool? recursive = 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 : uint64 * Microsoft.Azure.Storage.File.FileContinuationToken * Nullable<bool> * 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 : uint64 * Microsoft.Azure.Storage.File.FileContinuationToken * Nullable<bool> * 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 ULong, Optional token As FileContinuationToken = Nothing, Optional recursive As Nullable(Of Boolean) = 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
- UInt64
Id of the handle.
- token
- FileContinuationToken
Continuation token for when closing the handle takes exceedingly long.
Whether to recurse through this directory's sub files and folders. A lack of value is interpreted as false.
- 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
Azure SDK for .NET