C#
C++
F#
VB
CloudBlockBlob.::..StartCopyAsync Method (CloudFile, CancellationToken)(CloudFile^, CancellationToken)(CloudFile, CancellationToken)(CloudFile, CancellationToken)
Initiates an asynchronous operation to start copying a file's contents, properties, and metadata to this block blob.
Assembly: Microsoft.WindowsAzure.Storage (in Microsoft.WindowsAzure.Storage.dll)
Syntax
[DoesServiceRequestAttribute] public virtual Task<string> StartCopyAsync( CloudFile source, CancellationToken cancellationToken )
C++
public: [DoesServiceRequestAttribute] virtual Task<String^>^ StartCopyAsync( CloudFile^ source, CancellationToken cancellationToken )
[<DoesServiceRequestAttribute>] abstract StartCopyAsync : source:CloudFile * cancellationToken:CancellationToken -> Task<string> [<DoesServiceRequestAttribute>] override StartCopyAsync : source:CloudFile * cancellationToken:CancellationToken -> Task<string>
<DoesServiceRequestAttribute> Public Overridable Function StartCopyAsync ( source As CloudFile, cancellationToken As CancellationToken ) As Task(Of String)
Parameters
- source
-
Type:
Microsoft.WindowsAzure.Storage.File.CloudFileMicrosoft.WindowsAzure.Storage.File::CloudFile^Microsoft.WindowsAzure.Storage.File.CloudFileMicrosoft.WindowsAzure.Storage.File.CloudFile
A CloudFile object.
- 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<String>System.Threading.Tasks::Task<String^>^System.Threading.Tasks.Task<String>System.Threading.Tasks.Task(Of String)A Task<TResult><TResult><'TResult>(Of TResult) object of type string that represents the asynchronous operation.