CloudBlobContainer.BreakLease Methode

Definition

Unterbricht die aktuelle Lease für diesen Container.

[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual TimeSpan BreakLease (TimeSpan? breakPeriod = default, Microsoft.Azure.Storage.AccessCondition accessCondition = default, Microsoft.Azure.Storage.Blob.BlobRequestOptions options = default, Microsoft.Azure.Storage.OperationContext operationContext = default);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member BreakLease : Nullable<TimeSpan> * Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.Blob.BlobRequestOptions * Microsoft.Azure.Storage.OperationContext -> TimeSpan
override this.BreakLease : Nullable<TimeSpan> * Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.Blob.BlobRequestOptions * Microsoft.Azure.Storage.OperationContext -> TimeSpan
Public Overridable Function BreakLease (Optional breakPeriod As Nullable(Of TimeSpan) = Nothing, Optional accessCondition As AccessCondition = Nothing, Optional options As BlobRequestOptions = Nothing, Optional operationContext As OperationContext = Nothing) As TimeSpan

Parameter

breakPeriod
Nullable<TimeSpan>

Eine TimeSpan, die die zulässige Zeit für die Leasedauer darstellt und auf Sekunden abgerundet wird. Bei Festlegung auf null, ist der Unterbrechungszeitraum die verbleibende Zeit für die aktuelle Lease. Für unbegrenzte Leases wird null angegeben.

accessCondition
AccessCondition

Ein AccessCondition-Objekt, das die Bedingung darstellt, die erfüllt werden muss, damit die Anforderung fortgesetzt werden kann. Wenn null, wird keine Bedingung verwendet.

options
BlobRequestOptions

Ein BlobRequestOptions-Objekt, das zusätzliche Optionen für die Anforderung angibt. Wenn null, werden standardoptionen auf die Anforderung angewendet.

operationContext
OperationContext

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

Gibt zurück

Eine TimeSpan, die auf die Sekunde die Zeit darstellt, bis die Lease endet.

Attribute

Gilt für: