Share via


BlockBlobClient.GetBlockList Methode

Definition

Der GetBlockList(BlockListTypes, String, BlobRequestConditions, CancellationToken) Vorgangsvorgang ruft die Liste der Blöcke ab, die als Teil eines Blockblobs hochgeladen wurden. Für ein Blob werden zwei Blocklisten verwaltet. Die Liste Commit blockieren enthält Blöcke, die mit erfolgreich für ein bestimmtes Blob CommitBlockList(IEnumerable<String>, CommitBlockListOptions, CancellationToken)committet wurden. Die Liste Blockierung ohne Commit enthält Blöcke, die mit Azure.Storage.Blobs.Specialized.BlockBlobClient.StageBlock(System.String,System.IO.Stream,System.Byte[],Azure.Storage.Blobs.Models.BlobRequestConditions,System.IProgress{System.Int64},System.Threading.CancellationToken)für ein Blob hochgeladen wurden, aber noch nicht committet wurden. Diese Blöcke werden in Azure in Verbindung mit einem BLOB gespeichert, sind aber noch nicht Teil des BLOB.

public virtual Azure.Response<Azure.Storage.Blobs.Models.BlockList> GetBlockList (Azure.Storage.Blobs.Models.BlockListTypes blockListTypes = Azure.Storage.Blobs.Models.BlockListTypes.All, string snapshot = default, Azure.Storage.Blobs.Models.BlobRequestConditions conditions = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetBlockList : Azure.Storage.Blobs.Models.BlockListTypes * string * Azure.Storage.Blobs.Models.BlobRequestConditions * System.Threading.CancellationToken -> Azure.Response<Azure.Storage.Blobs.Models.BlockList>
override this.GetBlockList : Azure.Storage.Blobs.Models.BlockListTypes * string * Azure.Storage.Blobs.Models.BlobRequestConditions * System.Threading.CancellationToken -> Azure.Response<Azure.Storage.Blobs.Models.BlockList>
Public Overridable Function GetBlockList (Optional blockListTypes As BlockListTypes = Azure.Storage.Blobs.Models.BlockListTypes.All, Optional snapshot As String = Nothing, Optional conditions As BlobRequestConditions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Response(Of BlockList)

Parameter

blockListTypes
BlockListTypes

Gibt an, ob die Liste der Blöcke mit ausgeführtem Commit, die Liste der Blöcke ohne ausgeführten Commit oder beide Listen zusammen zurückgegeben werden. Wenn Sie diesen Parameter weglassen, gibt Get Block List die Liste der committeten Blöcke zurück.

snapshot
String

Gibt optional die Blob-Momentaufnahme an, aus der die Blockliste abgerufen werden soll. Weitere Informationen zum Arbeiten mit BLOB-Momentaufnahmen finden Sie unter Erstellen Sie eine Momentaufnahme eines Blobs.

conditions
BlobRequestConditions

Optional BlobRequestConditions zum Hinzufügen von Bedingungen beim Abrufen der Sperrliste.

cancellationToken
CancellationToken

Optional CancellationToken zur Weitergabe von Benachrichtigungen, dass der Vorgang abgebrochen werden soll.

Gibt zurück

Eine Response<T> Liste, die die angeforderten Blockierungen beschreibt.

Hinweise

Ein RequestFailedException wird ausgelöst, wenn ein Fehler auftritt.

Gilt für: