CloudFile.ExistsAsync Method (FileRequestOptions, OperationContext, CancellationToken) (Microsoft.WindowsAzure.Storage.File)
From Microsoft Windows Azure Storage Blob
C#
C++
F#
VB
CloudFile.::..ExistsAsync Method (FileRequestOptions, OperationContext, CancellationToken)(FileRequestOptions^, OperationContext^, CancellationToken)(FileRequestOptions, OperationContext, CancellationToken)(FileRequestOptions, OperationContext, CancellationToken)
Returns a task that performs an asynchronous request to check existence of the file.
Namespace:
Microsoft.WindowsAzure.Storage.File
Assembly:
Microsoft.WindowsAzure.Storage (in Microsoft.WindowsAzure.Storage.dll)
Syntax
[DoesServiceRequestAttribute]
public virtual Task<bool> ExistsAsync(
FileRequestOptions options,
OperationContext operationContext,
CancellationToken cancellationToken
)
C++
public:
[DoesServiceRequestAttribute]
virtual Task<bool>^ ExistsAsync(
FileRequestOptions^ options,
OperationContext^ operationContext,
CancellationToken cancellationToken
)
[<DoesServiceRequestAttribute>]
abstract ExistsAsync :
options:FileRequestOptions *
operationContext:OperationContext *
cancellationToken:CancellationToken -> Task<bool>
[<DoesServiceRequestAttribute>]
override ExistsAsync :
options:FileRequestOptions *
operationContext:OperationContext *
cancellationToken:CancellationToken -> Task<bool>
<DoesServiceRequestAttribute>
Public Overridable Function ExistsAsync (
options As FileRequestOptions,
operationContext As OperationContext,
cancellationToken As CancellationToken
) As Task(Of Boolean)
Parameters
- options
-
Type:
Microsoft.WindowsAzure.Storage.File.FileRequestOptionsMicrosoft.WindowsAzure.Storage.File::FileRequestOptions^Microsoft.WindowsAzure.Storage.File.FileRequestOptionsMicrosoft.WindowsAzure.Storage.File.FileRequestOptions
A FileRequestOptions object that specifies additional options for the request.
- operationContext
-
Type:
Microsoft.WindowsAzure.Storage.OperationContextMicrosoft.WindowsAzure.Storage::OperationContext^Microsoft.WindowsAzure.Storage.OperationContextMicrosoft.WindowsAzure.Storage.OperationContext
An OperationContext object that represents the context for the current operation.
- cancellationToken
-
Type:
System.Threading.CancellationTokenSystem.Threading::CancellationTokenSystem.Threading.CancellationTokenSystem.Threading.CancellationToken
A CancellationToken to observe while waiting for a task to complete.
Return Value
Type:
System.Threading.Tasks.Task<Boolean>System.Threading.Tasks::Task<Boolean>^System.Threading.Tasks.Task<Boolean>System.Threading.Tasks.Task(Of Boolean)A Task<TResult><TResult><'TResult>(Of TResult) object that represents the current operation.
Return to top
Returns a task that performs an asynchronous request to check existence of the file.
Syntax
[DoesServiceRequestAttribute] public virtual Task<bool> ExistsAsync( FileRequestOptions options, OperationContext operationContext, CancellationToken cancellationToken )
C++
public: [DoesServiceRequestAttribute] virtual Task<bool>^ ExistsAsync( FileRequestOptions^ options, OperationContext^ operationContext, CancellationToken cancellationToken )
[<DoesServiceRequestAttribute>] abstract ExistsAsync : options:FileRequestOptions * operationContext:OperationContext * cancellationToken:CancellationToken -> Task<bool> [<DoesServiceRequestAttribute>] override ExistsAsync : options:FileRequestOptions * operationContext:OperationContext * cancellationToken:CancellationToken -> Task<bool>
<DoesServiceRequestAttribute> Public Overridable Function ExistsAsync ( options As FileRequestOptions, operationContext As OperationContext, cancellationToken As CancellationToken ) As Task(Of Boolean)
Parameters
- options
-
Type:
Microsoft.WindowsAzure.Storage.File.FileRequestOptionsMicrosoft.WindowsAzure.Storage.File::FileRequestOptions^Microsoft.WindowsAzure.Storage.File.FileRequestOptionsMicrosoft.WindowsAzure.Storage.File.FileRequestOptions
A FileRequestOptions object that specifies additional options for the request.
- operationContext
-
Type:
Microsoft.WindowsAzure.Storage.OperationContextMicrosoft.WindowsAzure.Storage::OperationContext^Microsoft.WindowsAzure.Storage.OperationContextMicrosoft.WindowsAzure.Storage.OperationContext
An OperationContext object that represents the context for the current operation.
- cancellationToken
-
Type:
System.Threading.CancellationTokenSystem.Threading::CancellationTokenSystem.Threading.CancellationTokenSystem.Threading.CancellationToken
A CancellationToken to observe while waiting for a task to complete.
Return Value
Type: System.Threading.Tasks.Task<Boolean>System.Threading.Tasks::Task<Boolean>^System.Threading.Tasks.Task<Boolean>System.Threading.Tasks.Task(Of Boolean)A Task<TResult><TResult><'TResult>(Of TResult) object that represents the current operation.