CloudBlob.BeginAcquireLease Methode

Definition

Überlädt

BeginAcquireLease(Nullable<TimeSpan>, String, AsyncCallback, Object)

Startet einen asynchronen Vorgang, um eine Lease für dieses Blob abzurufen.

BeginAcquireLease(Nullable<TimeSpan>, String, AccessCondition, BlobRequestOptions, OperationContext, AsyncCallback, Object)

Startet einen asynchronen Vorgang, um eine Lease für dieses Blob abzurufen.

BeginAcquireLease(Nullable<TimeSpan>, String, AsyncCallback, Object)

Startet einen asynchronen Vorgang, um eine Lease für dieses Blob abzurufen.

[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual Microsoft.Azure.Storage.ICancellableAsyncResult BeginAcquireLease (TimeSpan? leaseTime, string proposedLeaseId, AsyncCallback callback, object state);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member BeginAcquireLease : Nullable<TimeSpan> * string * AsyncCallback * obj -> Microsoft.Azure.Storage.ICancellableAsyncResult
override this.BeginAcquireLease : Nullable<TimeSpan> * string * AsyncCallback * obj -> Microsoft.Azure.Storage.ICancellableAsyncResult
Public Overridable Function BeginAcquireLease (leaseTime As Nullable(Of TimeSpan), proposedLeaseId As String, callback As AsyncCallback, state As Object) As ICancellableAsyncResult

Parameter

leaseTime
Nullable<TimeSpan>

Eine TimeSpan, die die Zeitspanne für die Leasedauer darstellt und auf Sekunden abgerundet wird. Bei Festlegung auf null wird eine unbegrenzte Lease erworben. Wenn nicht NULL, muss dies 15 bis 60 Sekunden betragen.

proposedLeaseId
String

Eine Zeichenfolge, die die vorgeschlagene Lease-ID für die neue Lease darstellt, oder null, wenn keine Lease-ID vorgeschlagen wird.

callback
AsyncCallback

Ein optionaler 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:

BeginAcquireLease(Nullable<TimeSpan>, String, AccessCondition, BlobRequestOptions, OperationContext, AsyncCallback, Object)

Startet einen asynchronen Vorgang, um eine Lease für dieses Blob abzurufen.

[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual Microsoft.Azure.Storage.ICancellableAsyncResult BeginAcquireLease (TimeSpan? leaseTime, string proposedLeaseId, Microsoft.Azure.Storage.AccessCondition accessCondition, Microsoft.Azure.Storage.Blob.BlobRequestOptions options, Microsoft.Azure.Storage.OperationContext operationContext, AsyncCallback callback, object state);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member BeginAcquireLease : Nullable<TimeSpan> * string * Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.Blob.BlobRequestOptions * Microsoft.Azure.Storage.OperationContext * AsyncCallback * obj -> Microsoft.Azure.Storage.ICancellableAsyncResult
override this.BeginAcquireLease : Nullable<TimeSpan> * string * Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.Blob.BlobRequestOptions * Microsoft.Azure.Storage.OperationContext * AsyncCallback * obj -> Microsoft.Azure.Storage.ICancellableAsyncResult
Public Overridable Function BeginAcquireLease (leaseTime As Nullable(Of TimeSpan), proposedLeaseId As String, accessCondition As AccessCondition, options As BlobRequestOptions, operationContext As OperationContext, callback As AsyncCallback, state As Object) As ICancellableAsyncResult

Parameter

leaseTime
Nullable<TimeSpan>

Eine TimeSpan, die die Zeitspanne für die Leasedauer darstellt und auf Sekunden abgerundet wird. Bei Festlegung auf null wird eine unbegrenzte Lease erworben. Wenn nicht NULL, muss dies 15 bis 60 Sekunden betragen.

proposedLeaseId
String

Eine Zeichenfolge, die die vorgeschlagene Lease-ID für die neue Lease darstellt, oder null, wenn keine Lease-ID vorgeschlagen wird.

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.

callback
AsyncCallback

Ein optionaler 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: