CloudFile.StartCopyAsync Method (Uri, CancellationToken) (Microsoft.WindowsAzure.Storage.File)
From Microsoft Windows Azure Storage Blob
C#
C++
F#
VB
CloudFile.::..StartCopyAsync Method (Uri, CancellationToken)(Uri^, CancellationToken)(Uri, CancellationToken)(Uri, CancellationToken)
Initiates an asynchronous operation to start copying another Azure file or blob's contents, properties, and metadata to this Azure file.
Namespace:
Microsoft.WindowsAzure.Storage.File
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 or file.
- 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 Azure file or blob's contents, properties, and metadata to this Azure file.
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 or file.
- 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.