CloudBlobContainer.BreakLeaseAsync Methode

Definition

Überlädt

BreakLeaseAsync(Nullable<TimeSpan>)

Initiiert einen asynchronen Vorgang, der die aktuelle Lease für diesen Container unterbricht.

BreakLeaseAsync(Nullable<TimeSpan>, CancellationToken)

Initiiert einen asynchronen Vorgang, der die aktuelle Lease für diesen Container unterbricht.

BreakLeaseAsync(Nullable<TimeSpan>, AccessCondition, BlobRequestOptions, OperationContext)

Initiiert einen asynchronen Vorgang, der die aktuelle Lease für diesen Container unterbricht.

BreakLeaseAsync(Nullable<TimeSpan>, AccessCondition, BlobRequestOptions, OperationContext, CancellationToken)

Initiiert einen asynchronen Vorgang, der die aktuelle Lease für diesen Container unterbricht.

BreakLeaseAsync(Nullable<TimeSpan>)

Initiiert einen asynchronen Vorgang, der die aktuelle Lease für diesen Container unterbricht.

[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task<TimeSpan> BreakLeaseAsync (TimeSpan? breakPeriod);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member BreakLeaseAsync : Nullable<TimeSpan> -> System.Threading.Tasks.Task<TimeSpan>
override this.BreakLeaseAsync : Nullable<TimeSpan> -> System.Threading.Tasks.Task<TimeSpan>
Public Overridable Function BreakLeaseAsync (breakPeriod As Nullable(Of TimeSpan)) As Task(Of 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.

Gibt zurück

Ein Task<TResult>-Objekt, das den asynchronen Vorgang darstellt.

Attribute

Gilt für:

BreakLeaseAsync(Nullable<TimeSpan>, CancellationToken)

Initiiert einen asynchronen Vorgang, der die aktuelle Lease für diesen Container unterbricht.

[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task<TimeSpan> BreakLeaseAsync (TimeSpan? breakPeriod, System.Threading.CancellationToken cancellationToken);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member BreakLeaseAsync : Nullable<TimeSpan> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<TimeSpan>
override this.BreakLeaseAsync : Nullable<TimeSpan> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<TimeSpan>
Public Overridable Function BreakLeaseAsync (breakPeriod As Nullable(Of TimeSpan), cancellationToken As CancellationToken) As Task(Of 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.

cancellationToken
CancellationToken

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

Gibt zurück

Ein Task<TResult>-Objekt, das den asynchronen Vorgang darstellt.

Attribute

Gilt für:

BreakLeaseAsync(Nullable<TimeSpan>, AccessCondition, BlobRequestOptions, OperationContext)

Initiiert einen asynchronen Vorgang, der die aktuelle Lease für diesen Container unterbricht.

[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task<TimeSpan> BreakLeaseAsync (TimeSpan? breakPeriod, Microsoft.Azure.Storage.AccessCondition accessCondition, Microsoft.Azure.Storage.Blob.BlobRequestOptions options, Microsoft.Azure.Storage.OperationContext operationContext);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member BreakLeaseAsync : Nullable<TimeSpan> * Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.Blob.BlobRequestOptions * Microsoft.Azure.Storage.OperationContext -> System.Threading.Tasks.Task<TimeSpan>
override this.BreakLeaseAsync : Nullable<TimeSpan> * Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.Blob.BlobRequestOptions * Microsoft.Azure.Storage.OperationContext -> System.Threading.Tasks.Task<TimeSpan>
Public Overridable Function BreakLeaseAsync (breakPeriod As Nullable(Of TimeSpan), accessCondition As AccessCondition, options As BlobRequestOptions, operationContext As OperationContext) As Task(Of 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.

operationContext
OperationContext

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

Gibt zurück

Ein Task<TResult>-Objekt, das den asynchronen Vorgang darstellt.

Attribute

Gilt für:

BreakLeaseAsync(Nullable<TimeSpan>, AccessCondition, BlobRequestOptions, OperationContext, CancellationToken)

Initiiert einen asynchronen Vorgang, der die aktuelle Lease für diesen Container unterbricht.

[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task<TimeSpan> BreakLeaseAsync (TimeSpan? breakPeriod, Microsoft.Azure.Storage.AccessCondition accessCondition, Microsoft.Azure.Storage.Blob.BlobRequestOptions options, Microsoft.Azure.Storage.OperationContext operationContext, System.Threading.CancellationToken cancellationToken);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member BreakLeaseAsync : Nullable<TimeSpan> * Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.Blob.BlobRequestOptions * Microsoft.Azure.Storage.OperationContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<TimeSpan>
override this.BreakLeaseAsync : Nullable<TimeSpan> * Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.Blob.BlobRequestOptions * Microsoft.Azure.Storage.OperationContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<TimeSpan>
Public Overridable Function BreakLeaseAsync (breakPeriod As Nullable(Of TimeSpan), accessCondition As AccessCondition, options As BlobRequestOptions, operationContext As OperationContext, cancellationToken As CancellationToken) As Task(Of 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.

operationContext
OperationContext

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

cancellationToken
CancellationToken

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

Gibt zurück

Ein Task<TResult>-Objekt, das den asynchronen Vorgang darstellt.

Attribute

Gilt für: