Freigeben über


CloudBlobContainer.ChangeLease Methode

Definition

Ändert die Lease-ID für diesen Container.

[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual string ChangeLease (string proposedLeaseId, 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 ChangeLease : string * Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.Blob.BlobRequestOptions * Microsoft.Azure.Storage.OperationContext -> string
override this.ChangeLease : string * Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.Blob.BlobRequestOptions * Microsoft.Azure.Storage.OperationContext -> string
Public Overridable Function ChangeLease (proposedLeaseId As String, Optional accessCondition As AccessCondition = Nothing, Optional options As BlobRequestOptions = Nothing, Optional operationContext As OperationContext = Nothing) As String

Parameter

proposedLeaseId
String

Eine Zeichenfolge, die die vorgeschlagene Lease-ID für die neue Leasedauer darstellt. Darf nicht NULL sein.

accessCondition
AccessCondition

Ein AccessCondition -Objekt, das die Bedingung darstellt, die erfüllt werden muss, damit die Anforderung fortgesetzt werden kann, einschließlich einer erforderlichen Lease-ID.

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

Die neue Lease-ID.

Attribute

Gilt für: