Exportar (0) Imprimir
Expandir Tudo

Método BlobRequest.CopyFrom

[Este tópico é uma documentação de pré-lançamento e está sujeito a alterações em versões futuras. Os tópicos em branco são incluídos como espaços reservados.]

Constructs a web request to copy a blob.

Namespace: Microsoft.WindowsAzure.StorageClient.Protocol
Assembly: Microsoft.WindowsAzure.StorageClient (em microsoft.windowsazure.storageclient.dll)

'Uso
Dim uri As Uri
Dim timeout As Integer
Dim source As String
Dim sourceSnapshot As Nullable(Of DateTime)
Dim sourceConditions As ConditionHeaderKind
Dim sourceConditionsValue As String
Dim leaseId As String
Dim returnValue As HttpWebRequest

returnValue = BlobRequest.CopyFrom(uri, timeout, source, sourceSnapshot, sourceConditions, sourceConditionsValue, leaseId)

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

Parâmetros

uri

The absolute URI to the destination blob.

timeout

The server timeout interval.

source

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

sourceSnapshot

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

sourceConditions

A type of condition to check on the source blob.

sourceConditionsValue

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

leaseId

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

Valor retornado

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.


Todos os membros estáticos públicos (Compartilhados no Visual Basic) desse tipo são thread-safe. Quaisquer membros de instância não têm garantia de ser thread-safe.

Plataformas de desenvolvimento

Windows XP Professional com Service Pack 2 (SP2)

Plataformas de destino

Contribuições da comunidade

Mostrar:
© 2014 Microsoft