ShareFileClient.ForceCloseAllHandlesAsync(CancellationToken) Method
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.
The ForceCloseAllHandlesAsync(CancellationToken) operation closes all handles opened on a file at the service.
This API is intended to be used alongside GetHandlesAsync(CancellationToken) to force close handles that block operations. These handles may have leaked or been lost track of by SMB clients. The API has client-side impact on the handle being closed, including user visible errors due to failed attempts to read or write files. This API is not intended for use as a replacement or alternative for SMB close.
For more information, see Force Close Handles.
public virtual System.Threading.Tasks.Task<Azure.Storage.Files.Shares.Models.CloseHandlesResult> ForceCloseAllHandlesAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member ForceCloseAllHandlesAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Storage.Files.Shares.Models.CloseHandlesResult>
override this.ForceCloseAllHandlesAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Storage.Files.Shares.Models.CloseHandlesResult>
Public Overridable Function ForceCloseAllHandlesAsync (Optional cancellationToken As CancellationToken = Nothing) As Task(Of CloseHandlesResult)
- cancellationToken
- CancellationToken
Optional CancellationToken to propagate notifications that the operation should be cancelled.
A CloseHandlesResult describing the status of the ForceCloseAllHandlesAsync(CancellationToken) operation.
A RequestFailedException will be thrown if a failure occurs.
Feedback su Azure SDK for .NET
Azure SDK for .NET è un progetto di open source. Selezionare un collegamento per fornire feedback: