Eksporter (0) Skriv ut
Vis alt
EN
Dette innholdet er ikke tilgjengelig på ditt språk, men her er den engelske versjonen.
Dette emnet er ennå ikke vurdert - Vurder dette emnet

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)
'Bruk

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

Parameters

uri

Type: System.Uri

The absolute URI to the destination blob.

timeout

Type: System.Int32

The server timeout interval.

source

Type: System.String

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

sourceSnapshot

Type: System.Nullable

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

sourceConditions

Type: Microsoft.WindowsAzure.StorageClient.Protocol.ConditionHeaderKind

A type of condition to check on the source blob.

sourceConditionsValue

Type: System.String

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

leaseId

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

Vurderte du dette som nyttig?
(1500 tegn igjen)
Takk for tilbakemeldingen
Vis:
© 2014 Microsoft. Med enerett.