Share via


CloudFile.BeginUploadFromByteArray Methode

Definition

Überlädt

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

Startet einen asynchronen Vorgang, um den Inhalt eines Bytearrays in eine Datei hochzuladen. Wenn die Datei bereits im Dienst vorhanden ist, wird sie überschrieben.

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

Startet einen asynchronen Vorgang, um den Inhalt eines Bytearrays in eine Datei hochzuladen. Wenn die Datei bereits im Dienst vorhanden ist, wird sie überschrieben.

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

Startet einen asynchronen Vorgang, um den Inhalt eines Bytearrays in eine Datei hochzuladen. Wenn die Datei bereits im Dienst vorhanden ist, wird sie überschrieben.

[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 mit dem Hochladen von Bytes in die Datei begonnen werden soll.

count
Int32

Die Anzahl der Bytes, die in die Datei geschrieben werden sollen.

callback
AsyncCallback

Der Rückrufdelegat, der nach Abschluss des asynchronen Vorgangs eine Benachrichtigung erhält.

state
Object

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

Gibt zurück

Ein ICancellableAsyncResult , der auf den asynchronen Vorgang verweist.

Attribute

Gilt für:

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

Startet einen asynchronen Vorgang, um den Inhalt eines Bytearrays in eine Datei hochzuladen. Wenn die Datei bereits im Dienst vorhanden ist, wird sie überschrieben.

[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.File.FileRequestOptions 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.File.FileRequestOptions * Microsoft.Azure.Storage.OperationContext * AsyncCallback * obj -> Microsoft.Azure.Storage.ICancellableAsyncResult
override this.BeginUploadFromByteArray : byte[] * int * int * Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.File.FileRequestOptions * 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 FileRequestOptions, 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 mit dem Hochladen von Bytes in die Datei begonnen werden soll.

count
Int32

Die Anzahl der Bytes, die in die Datei geschrieben werden sollen.

accessCondition
AccessCondition

Ein AccessCondition-Objekt, das die Zugriffsbedingung für die Datei darstellt.

options
FileRequestOptions

Ein FileRequestOptions-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

Der Rückrufdelegat, der nach Abschluss des asynchronen Vorgangs eine Benachrichtigung erhält.

state
Object

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

Gibt zurück

Ein ICancellableAsyncResult , der auf den asynchronen Vorgang verweist.

Attribute

Gilt für: