Freigeben über


CloudAppendBlob.BeginUploadFromByteArray Methode

Definition

Überlädt

BeginUploadFromByteArray(Byte[], Int32, Int32, AsyncCallback, Object)

Startet einen asynchronen Vorgang, um den Inhalt eines Bytearrays in ein Anfügeblob hochzuladen. Wenn das Blob bereits vorhanden ist, wird es überschrieben. Wird nur für Szenarien mit einem einzelnen Writer empfohlen.

BeginUploadFromByteArray(Byte[], Int32, Int32, AccessCondition, BlobRequestOptions, OperationContext, AsyncCallback, Object)

Startet einen asynchronen Vorgang, um den Inhalt eines Bytearrays in ein Anfügeblob hochzuladen. Wenn das Blob bereits vorhanden ist, wird es überschrieben. Wird nur für Szenarien mit einem einzelnen Writer empfohlen.

BeginUploadFromByteArray(Byte[], Int32, Int32, AsyncCallback, Object)

Startet einen asynchronen Vorgang, um den Inhalt eines Bytearrays in ein Anfügeblob hochzuladen. Wenn das Blob bereits vorhanden ist, wird es überschrieben. Wird nur für Szenarien mit einem einzelnen Writer empfohlen.

[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual Microsoft.Azure.Storage.ICancellableAsyncResult BeginUploadFromByteArray (byte[] buffer, int index, int count, AsyncCallback callback, object state);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member BeginUploadFromByteArray : byte[] * int * int * AsyncCallback * obj -> Microsoft.Azure.Storage.ICancellableAsyncResult
override this.BeginUploadFromByteArray : byte[] * int * int * AsyncCallback * obj -> Microsoft.Azure.Storage.ICancellableAsyncResult
Public Overridable Function BeginUploadFromByteArray (buffer As Byte(), index As Integer, count As Integer, callback As AsyncCallback, state As Object) As ICancellableAsyncResult

Parameter

buffer
Byte[]

Ein Bytearray.

index
Int32

Der nullbasierte Byteoffset im Puffer, ab dem Bytes in das Blob hochgeladen werden sollen

count
Int32

Die Anzahl der Bytes, die in das Blob geschrieben werden sollen.

callback
AsyncCallback

Ein AsyncCallback Delegat, der eine Benachrichtigung erhält, wenn der asynchrone Vorgang abgeschlossen ist.

state
Object

Ein benutzerdefiniertes Objekt, das an den Rückrufdelegaten übergeben wird.

Gibt zurück

Ein ICancellableAsyncResult , der auf den asynchronen Vorgang verweist.

Implementiert

Attribute

Hinweise

Verwenden Sie diese Methode nur in Szenarien mit einem einzelnen Writer. Intern verwendet diese Methode den bedingten Header append-offset, um doppelte Blöcke zu vermeiden, was in Szenarien mit mehreren Schreibvorgängen zu Problemen führen kann. Informationen zum Anfügen von Daten an ein bereits vorhandenes Anfügeblob finden Sie unter BeginAppendFromByteArray(Byte[], Int32, Int32, AsyncCallback, Object).

Gilt für:

BeginUploadFromByteArray(Byte[], Int32, Int32, AccessCondition, BlobRequestOptions, OperationContext, AsyncCallback, Object)

Startet einen asynchronen Vorgang, um den Inhalt eines Bytearrays in ein Anfügeblob hochzuladen. Wenn das Blob bereits vorhanden ist, wird es überschrieben. Wird nur für Szenarien mit einem einzelnen Writer empfohlen.

[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual Microsoft.Azure.Storage.ICancellableAsyncResult BeginUploadFromByteArray (byte[] buffer, int index, int count, Microsoft.Azure.Storage.AccessCondition accessCondition, Microsoft.Azure.Storage.Blob.BlobRequestOptions options, Microsoft.Azure.Storage.OperationContext operationContext, AsyncCallback callback, object state);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member BeginUploadFromByteArray : byte[] * int * int * Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.Blob.BlobRequestOptions * Microsoft.Azure.Storage.OperationContext * AsyncCallback * obj -> Microsoft.Azure.Storage.ICancellableAsyncResult
override this.BeginUploadFromByteArray : byte[] * int * int * Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.Blob.BlobRequestOptions * Microsoft.Azure.Storage.OperationContext * AsyncCallback * obj -> Microsoft.Azure.Storage.ICancellableAsyncResult
Public Overridable Function BeginUploadFromByteArray (buffer As Byte(), index As Integer, count As Integer, accessCondition As AccessCondition, options As BlobRequestOptions, operationContext As OperationContext, callback As AsyncCallback, state As Object) As ICancellableAsyncResult

Parameter

buffer
Byte[]

Ein Bytearray.

index
Int32

Der nullbasierte Byteoffset im Puffer, ab dem Bytes in das Blob hochgeladen werden sollen

count
Int32

Die Anzahl der Bytes, die in das Blob geschrieben werden sollen.

accessCondition
AccessCondition

Ein AccessCondition-Objekt, das die Bedingung darstellt, die erfüllt werden muss, damit die Anforderung fortgesetzt werden kann.

options
BlobRequestOptions

Ein BlobRequestOptions-Objekt, das zusätzliche Optionen für die Anforderung angibt.

operationContext
OperationContext

Ein OperationContext-Objekt, das den Kontext für den aktuellen Vorgang darstellt.

callback
AsyncCallback

Ein AsyncCallback Delegat, der eine Benachrichtigung erhält, wenn der asynchrone Vorgang abgeschlossen ist.

state
Object

Ein benutzerdefiniertes Objekt, das an den Rückrufdelegaten übergeben wird.

Gibt zurück

Ein ICancellableAsyncResult , der auf den asynchronen Vorgang verweist.

Implementiert

Attribute

Hinweise

Verwenden Sie diese Methode nur in Szenarien mit einem einzelnen Writer. Intern verwendet diese Methode den bedingten Header append-offset, um doppelte Blöcke zu vermeiden, was in Szenarien mit mehreren Schreibvorgängen zu Problemen führen kann. Wenn Sie über ein Szenario mit einem einzelnen Writer verfügen, finden Sie weitere Informationen AbsorbConditionalErrorsOnRetry dazu, ob das Festlegen dieses Flags auf true für Ihr Szenario akzeptabel ist. Informationen zum Anfügen von Daten an ein bereits vorhandenes Anfügeblob finden Sie unter BeginAppendFromByteArray(Byte[], Int32, Int32, AccessCondition, BlobRequestOptions, OperationContext, AsyncCallback, Object).

Gilt für: