銷售: 1-800-867-1380

CloudDrive.CopyTo 方法

Copies the data in this Windows Azure drive to a new page blob.

命名空間: Microsoft.WindowsAzure.StorageClient
組件: Microsoft.WindowsAzure.CloudDrive (在 microsoft.windowsazure.clouddrive.dll 中)

'用途
Dim instance As CloudDrive
Dim destination As Uri

instance.CopyTo(destination)

public void CopyTo (
	Uri destination
)
public void CopyTo (
	Uri destination
)
public function CopyTo (
	destination : Uri
)

參數

destination

The URI of the destination page blob.

The CopyTo method copies a drive or a snapshot to the destination page blob. The destination page blob can be used to create and mount a new read-write drive.

You can copy a mounted drive if the following conditions are true:

  • The destination page blob is not mounted.

  • You are not copying from the storage emulator in a development environment, as you can only copy from a mounted drive in the cloud.

If you copy a mounted drive, the data may not be in a valid state. To ensure the data is in a valid state, first unmount the drive, or create a snapshot.

The CopyTo method works only for a CloudDrive object created with credentials of type StorageCredentialsAccountAndKey. You cannot use a shared access signature to copy a drive.


任何這個類型的公用靜態 (在 Visual Basic 中為 Shared) 成員都具備執行緒安全。 並非所有的執行個體成員都是安全執行緒。

開發平台

Windows XP Home Edition, Windows XP Professional, Windows Server 2003、Windows Server 2008 和 Windows 2000

目標平台

本文對您有任何幫助嗎?
(剩餘 1500 個字元)
感謝您提供意見

社群新增項目

Microsoft 正展開一份線上問卷調查,了解您對於 MSDN 網站的看法。 如果您選擇參加,您離開 MSDN 網站時即會顯示線上問卷調查。

您是否想要參加?
顯示:
© 2014 Microsoft