







CloudPageBlob.StartCopyFromBlobAsync Method (CloudPageBlob, AccessCondition, AccessCondition, BlobRequestOptions, OperationContext) |
See Also |
![]() ![]() |
Requests that the service start to copy a blob's contents, properties, and metadata to a new blob.
Namespace: Microsoft.WindowsAzure.Storage.Blob
Assembly: Microsoft.WindowsAzure.Storage (in Microsoft.WindowsAzure.Storage.dll)
Assembly: Microsoft.WindowsAzure.Storage (in Microsoft.WindowsAzure.Storage.dll)
Usage
Visual Basic |
---|
Dim instance As CloudPageBlob Dim source As CloudPageBlob Dim sourceAccessCondition As AccessCondition Dim destAccessCondition As AccessCondition Dim options As BlobRequestOptions Dim operationContext As OperationContext Dim returnValue As IAsyncOperation(Of String) returnValue = instance.StartCopyFromBlobAsync(source, sourceAccessCondition, destAccessCondition, options, operationContext) |
Syntax
Visual Basic |
---|
Public Function StartCopyFromBlobAsync ( _ source As CloudPageBlob, _ sourceAccessCondition As AccessCondition, _ destAccessCondition As AccessCondition, _ options As BlobRequestOptions, _ operationContext As OperationContext _ ) As IAsyncOperation(Of String) |
C# |
---|
public IAsyncOperation<string> StartCopyFromBlobAsync ( CloudPageBlob source, AccessCondition sourceAccessCondition, AccessCondition destAccessCondition, BlobRequestOptions options, OperationContext operationContext ) |
C++ |
---|
public: IAsyncOperation<String^>^ StartCopyFromBlobAsync ( CloudPageBlob^ source, AccessCondition^ sourceAccessCondition, AccessCondition^ destAccessCondition, BlobRequestOptions^ options, OperationContext^ operationContext ) |
J# |
---|
public IAsyncOperation<String> StartCopyFromBlobAsync ( CloudPageBlob source, AccessCondition sourceAccessCondition, AccessCondition destAccessCondition, BlobRequestOptions options, OperationContext operationContext ) |
JScript |
---|
public function StartCopyFromBlobAsync ( source : CloudPageBlob, sourceAccessCondition : AccessCondition, destAccessCondition : AccessCondition, options : BlobRequestOptions, operationContext : OperationContext ) : IAsyncOperation<String> |
Parameters
- source
The URI of a source blob.
- sourceAccessCondition
An object that represents the access conditions for the source blob. If
null
, no condition is used.
- destAccessCondition
An object that represents the access conditions for the destination blob. If
null
, no condition is used.
- options
A BlobRequestOptions object that specifies additional options for the request.
- operationContext
An OperationContext object that represents the context for the current operation.
Return Value
The copy ID associated with the copy operation.
Remarks
This method fetches the blob's ETag, last modified time, and part of the copy state. The copy ID and copy status fields are fetched, and the rest of the copy state is cleared.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.