IUserDiskOperations.CopyAsync Method

Definition

Copy user disk from one collection to the other and keep the source user disk.

public System.Threading.Tasks.Task<Microsoft.Azure.AzureOperationResponse> CopyAsync (string srcCollectionName, string dstCollectionName, string userUpn, bool overwriteExistingUserDisk, System.Threading.CancellationToken cancellationToken);
abstract member CopyAsync : string * string * string * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.AzureOperationResponse>
Public Function CopyAsync (srcCollectionName As String, dstCollectionName As String, userUpn As String, overwriteExistingUserDisk As Boolean, cancellationToken As CancellationToken) As Task(Of AzureOperationResponse)

Parameters

srcCollectionName
String

The source collection name.

dstCollectionName
String

The destination collection name.

userUpn
String

The user upn.

overwriteExistingUserDisk
Boolean

A flag denoting if the request is to overwrite the existing user disk

cancellationToken
CancellationToken

Cancellation token.

Returns

Task<Microsoft.Azure.AzureOperationResponse>

A standard service response including an HTTP status code and request ID.

Applies to