Eksportér (0) Udskriv
Udvid alt
Dette indhold er ikke tilgængeligt på dit sprog, men her er den engelske version.

BlobRequest.CopyFrom Method

Updated: April 24, 2013

[This topic is part of the Windows Azure Storage Client Library 1.7, which has been deprecated. The current recommended version is Storage Client Library 3.0.]

Constructs a web request to copy a blob.

Namespace: Microsoft.WindowsAzure.StorageClient.Protocol
Assembly: Microsoft.WindowsAzure.StorageClient (in Microsoft.WindowsAzure.StorageClient.dll)


public static HttpWebRequest CopyFrom (
	Uri uri,
	int timeout,
	string source,
	Nullable<DateTime> sourceSnapshot,
	ConditionHeaderKind sourceConditions,
	string sourceConditionsValue,
	string leaseId



Type: System.Uri

The absolute URI to the destination blob.


Type: System.Int32

The server timeout interval.


Type: System.String

The canonical path to the source blob, in the form /<account-name>/<container-name>/<blob-name>.


Type: System.Nullable

The snapshot version, if the source blob is a snapshot.


Type: Microsoft.WindowsAzure.StorageClient.Protocol.ConditionHeaderKind

A type of condition to check on the source blob.


Type: System.String

The value of the condition to check on the source blob.


Type: System.String

The lease ID for the source blob, if it has an active lease.

Return Value

Type: System.Net.HttpWebRequest

A web request to use to perform the operation.

If the destination blob has an active lease, you must specify a valid lease ID for the active lease in order to copy the blob.

If the source blob has an active lease, you can optionally specify the lease ID for the source blob to copy the source blob conditionally. In this case, the source blob will be copied only if the lease ID for the source blob matches that specified on the request.

Copying a blob does not affect an existing lease on the destination blob. The destination blob's lease is maintained, whether you are copying a blob to a destination blob with a different name from the source, copying the blob to a destination blob with the same name as the source, or copying a snapshot over its base blob.

For more details about this API, see the topics on the equivalent REST APIs in See Also > Other Resources.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows Vista, Windows 7 and Windows Server 2008

Target Platforms

© 2014 Microsoft