ShareDirectoryClient.GetHandles Method

Definition

The GetHandles(Nullable<Boolean>, CancellationToken) operation returns an async sequence of the open handles on a directory or a file. Enumerating the handles may make multiple requests to the service while fetching all the values.

For more information, see List Handles.

C#
public virtual Azure.Pageable<Azure.Storage.Files.Shares.Models.ShareFileHandle> GetHandles(bool? recursive = default, System.Threading.CancellationToken cancellationToken = default);

Parameters

recursive
Nullable<Boolean>

Optional. A boolean value that specifies if the operation should also apply to the files and subdirectories of the directory specified.

cancellationToken
CancellationToken

Optional CancellationToken to propagate notifications that the operation should be cancelled.

Returns

An IEnumerable<T> of Response<T> describing the handles in the directory.

Remarks

A RequestFailedException will be thrown if a failure occurs.

Applies to

Product Versies
Azure SDK for .NET Latest, Preview