C#
C++
F#
VB
CloudBlockBlob.::..CreateSnapshotAsync Method (CancellationToken)(CancellationToken)(CancellationToken)(CancellationToken)
Initiates an asynchronous operation to create a snapshot of the blob.
Assembly: Microsoft.WindowsAzure.Storage (in Microsoft.WindowsAzure.Storage.dll)
Syntax
[DoesServiceRequestAttribute] public virtual Task<CloudBlockBlob> CreateSnapshotAsync( CancellationToken cancellationToken )
C++
public: [DoesServiceRequestAttribute] virtual Task<CloudBlockBlob^>^ CreateSnapshotAsync( CancellationToken cancellationToken )
[<DoesServiceRequestAttribute>] abstract CreateSnapshotAsync : cancellationToken:CancellationToken -> Task<CloudBlockBlob> [<DoesServiceRequestAttribute>] override CreateSnapshotAsync : cancellationToken:CancellationToken -> Task<CloudBlockBlob>
<DoesServiceRequestAttribute> Public Overridable Function CreateSnapshotAsync ( cancellationToken As CancellationToken ) As Task(Of CloudBlockBlob)
Parameters
- 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<CloudBlockBlob>System.Threading.Tasks::Task<CloudBlockBlob^>^System.Threading.Tasks.Task<CloudBlockBlob>System.Threading.Tasks.Task(Of CloudBlockBlob)A Task<TResult><TResult><'TResult>(Of TResult) object of type CloudBlockBlob that represents the asynchronous operation.
See Also
CreateSnapshotAsync Overload
CloudBlockBlob Class
Microsoft.WindowsAzure.Storage.Blob Namespace