Share via


IStorageFileManagement.FileExistsAsync Method

Definition

Overloads

FileExistsAsync(CloudFile, FileRequestOptions, OperationContext, CancellationToken)

Returns a task that performs an asynchronous operation to determine whether a file exists.

FileExistsAsync(CloudFile, FileRequestOptions, OperationContext, CancellationToken)

FileExistsAsync(CloudFile, FileRequestOptions, OperationContext, CancellationToken)

Returns a task that performs an asynchronous operation to determine whether a file exists.

public System.Threading.Tasks.Task<bool> FileExistsAsync (Microsoft.Azure.Storage.File.CloudFile file, Microsoft.Azure.Storage.File.FileRequestOptions options, Microsoft.Azure.Storage.OperationContext operationContext, System.Threading.CancellationToken cancellationToken);
abstract member FileExistsAsync : Microsoft.Azure.Storage.File.CloudFile * Microsoft.Azure.Storage.File.FileRequestOptions * Microsoft.Azure.Storage.OperationContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Function FileExistsAsync (file As CloudFile, options As FileRequestOptions, operationContext As OperationContext, cancellationToken As CancellationToken) As Task(Of Boolean)

Parameters

file
CloudFile

Indicating the reference of the file.

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.

cancellationToken
CancellationToken

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

Returns

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

Applies to

FileExistsAsync(CloudFile, FileRequestOptions, OperationContext, CancellationToken)

public System.Threading.Tasks.Task<bool> FileExistsAsync (Microsoft.WindowsAzure.Storage.File.CloudFile file, Microsoft.WindowsAzure.Storage.File.FileRequestOptions options, Microsoft.WindowsAzure.Storage.OperationContext operationContext, System.Threading.CancellationToken cancellationToken);
abstract member FileExistsAsync : Microsoft.WindowsAzure.Storage.File.CloudFile * Microsoft.WindowsAzure.Storage.File.FileRequestOptions * Microsoft.WindowsAzure.Storage.OperationContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Function FileExistsAsync (file As CloudFile, options As FileRequestOptions, operationContext As OperationContext, cancellationToken As CancellationToken) As Task(Of Boolean)

Parameters

file
CloudFile
operationContext
OperationContext
cancellationToken
CancellationToken

Returns

Applies to