CloudBlob.StartCopyAsync Method (Uri, CancellationToken) (Microsoft.WindowsAzure.Storage.Blob)
From Microsoft Windows Azure Storage Blob
C#
C++
F#
VB
CloudBlob.::..StartCopyAsync Method (Uri, CancellationToken)(Uri^, CancellationToken)(Uri, CancellationToken)(Uri, CancellationToken)
Initiates an asynchronous operation to start copying another blob's contents, properties, and metadata
to this blob.
Namespace:
Microsoft.WindowsAzure.Storage.Blob
Assembly:
Microsoft.WindowsAzure.Storage (in Microsoft.WindowsAzure.Storage.dll)
Syntax
[DoesServiceRequestAttribute]
public virtual Task<string> StartCopyAsync(
Uri source,
CancellationToken cancellationToken
)
C++
public:
[DoesServiceRequestAttribute]
virtual Task<String^>^ StartCopyAsync(
Uri^ source,
CancellationToken cancellationToken
)
[<DoesServiceRequestAttribute>]
abstract StartCopyAsync :
source:Uri *
cancellationToken:CancellationToken -> Task<string>
[<DoesServiceRequestAttribute>]
override StartCopyAsync :
source:Uri *
cancellationToken:CancellationToken -> Task<string>
<DoesServiceRequestAttribute>
Public Overridable Function StartCopyAsync (
source As Uri,
cancellationToken As CancellationToken
) As Task(Of String)
Parameters
- source
-
Type:
System.UriSystem::Uri^System.UriSystem.Uri
The Uri of the source blob.
- 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.
Return to top
Initiates an asynchronous operation to start copying another blob's contents, properties, and metadata to this blob.
Syntax
[DoesServiceRequestAttribute] public virtual Task<string> StartCopyAsync( Uri source, CancellationToken cancellationToken )
C++
public: [DoesServiceRequestAttribute] virtual Task<String^>^ StartCopyAsync( Uri^ source, CancellationToken cancellationToken )
[<DoesServiceRequestAttribute>] abstract StartCopyAsync : source:Uri * cancellationToken:CancellationToken -> Task<string> [<DoesServiceRequestAttribute>] override StartCopyAsync : source:Uri * cancellationToken:CancellationToken -> Task<string>
<DoesServiceRequestAttribute> Public Overridable Function StartCopyAsync ( source As Uri, cancellationToken As CancellationToken ) As Task(Of String)
Parameters
- source
-
Type:
System.UriSystem::Uri^System.UriSystem.Uri
The Uri of the source blob.
- 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.