IStorageFileManagement.EnumerateFilesAndDirectoriesAsync Method

Definition

Overloads

EnumerateFilesAndDirectoriesAsync(CloudFileDirectory, Action<IListFileItem>, FileRequestOptions, OperationContext, CancellationToken)

Enumerates the files and directories under a certain folder.

EnumerateFilesAndDirectoriesAsync(CloudFileDirectory, Action<IListFileItem>, FileRequestOptions, OperationContext, CancellationToken)

EnumerateFilesAndDirectoriesAsync(CloudFileDirectory, Action<IListFileItem>, FileRequestOptions, OperationContext, CancellationToken)

Enumerates the files and directories under a certain folder.

public System.Threading.Tasks.Task EnumerateFilesAndDirectoriesAsync (Microsoft.Azure.Storage.File.CloudFileDirectory directory, Action<Microsoft.Azure.Storage.File.IListFileItem> enumerationAction, Microsoft.Azure.Storage.File.FileRequestOptions options, Microsoft.Azure.Storage.OperationContext operationContext, System.Threading.CancellationToken token);
abstract member EnumerateFilesAndDirectoriesAsync : Microsoft.Azure.Storage.File.CloudFileDirectory * Action<Microsoft.Azure.Storage.File.IListFileItem> * Microsoft.Azure.Storage.File.FileRequestOptions * Microsoft.Azure.Storage.OperationContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function EnumerateFilesAndDirectoriesAsync (directory As CloudFileDirectory, enumerationAction As Action(Of IListFileItem), options As FileRequestOptions, operationContext As OperationContext, token As CancellationToken) As Task

Parameters

directory
CloudFileDirectory

Indicating the directory to be listed.

enumerationAction
Action<IListFileItem>

Indicating the action for enumerated items.

options
FileRequestOptions

A Microsoft.Azure.Storage.File.FileRequestOptions object that specifies additional options for the request.

operationContext
OperationContext

A Microsoft.WindowsAzure.Storage.OperationContext object that represents the context for the current operation.

token
CancellationToken

Indicating the cancellation token.

Returns

A System.Threading.Tasks.Task object that represents the current operation.

Applies to

EnumerateFilesAndDirectoriesAsync(CloudFileDirectory, Action<IListFileItem>, FileRequestOptions, OperationContext, CancellationToken)

public System.Threading.Tasks.Task EnumerateFilesAndDirectoriesAsync (Microsoft.WindowsAzure.Storage.File.CloudFileDirectory directory, Action<Microsoft.WindowsAzure.Storage.File.IListFileItem> enumerationAction, Microsoft.WindowsAzure.Storage.File.FileRequestOptions options, Microsoft.WindowsAzure.Storage.OperationContext operationContext, System.Threading.CancellationToken token);
abstract member EnumerateFilesAndDirectoriesAsync : Microsoft.WindowsAzure.Storage.File.CloudFileDirectory * Action<Microsoft.WindowsAzure.Storage.File.IListFileItem> * Microsoft.WindowsAzure.Storage.File.FileRequestOptions * Microsoft.WindowsAzure.Storage.OperationContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function EnumerateFilesAndDirectoriesAsync (directory As CloudFileDirectory, enumerationAction As Action(Of IListFileItem), options As FileRequestOptions, operationContext As OperationContext, token As CancellationToken) As Task

Parameters

directory
CloudFileDirectory
enumerationAction
Action<IListFileItem>
operationContext
OperationContext

Returns

Applies to