Share via


CloudAppendBlob.UploadFromStreamAsyncHelper Methode

Definition

Lädt einen Stream in ein Anfügeblob hoch. Wird nur für Szenarien mit einem einzelnen Writer empfohlen.

[Microsoft.Azure.Storage.DoesServiceRequest]
public System.Threading.Tasks.Task UploadFromStreamAsyncHelper (System.IO.Stream source, long? length, bool createNew, Microsoft.Azure.Storage.AccessCondition accessCondition, Microsoft.Azure.Storage.Blob.BlobRequestOptions options, Microsoft.Azure.Storage.OperationContext operationContext, IProgress<Microsoft.Azure.Storage.Core.Util.StorageProgress> progressHandler, System.Threading.CancellationToken cancellationToken);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
member this.UploadFromStreamAsyncHelper : System.IO.Stream * Nullable<int64> * bool * Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.Blob.BlobRequestOptions * Microsoft.Azure.Storage.OperationContext * IProgress<Microsoft.Azure.Storage.Core.Util.StorageProgress> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function UploadFromStreamAsyncHelper (source As Stream, length As Nullable(Of Long), createNew As Boolean, accessCondition As AccessCondition, options As BlobRequestOptions, operationContext As OperationContext, progressHandler As IProgress(Of StorageProgress), cancellationToken As CancellationToken) As Task

Parameter

source
Stream

Der Datenstrom, der den BLOB-Inhalt bereitstellt.

length
Nullable<Int64>

Die Anzahl der aus dem Quelldatenstrom an der aktuellen Position zu schreibenden Bytes.

createNew
Boolean

true , wenn das Anfügeblob neu erstellt wird, andernfalls false .

accessCondition
AccessCondition

Ein AccessCondition-Objekt, das die Zugriffsbedingungen für das Blob darstellt. Wenn null, wird keine Bedingung verwendet.

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.

progressHandler
IProgress<StorageProgress>

Ein IProgress<T> Objekt zum Erfassen von Statusdelta.

cancellationToken
CancellationToken

Ein CancellationToken, das beim Warten auf den Abschluss einer Aufgabe überwacht werden soll.

Gibt zurück

Ein Task , der eine asynchrone Aktion darstellt.

Attribute

Gilt für: