ICloudBlob.AcquireLease メソッド

定義

この BLOB のリースを取得します。

public string AcquireLease (TimeSpan? leaseTime, string proposedLeaseId, Microsoft.Azure.Storage.AccessCondition accessCondition = default, Microsoft.Azure.Storage.Blob.BlobRequestOptions options = default, Microsoft.Azure.Storage.OperationContext operationContext = default);
abstract member AcquireLease : Nullable<TimeSpan> * string * Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.Blob.BlobRequestOptions * Microsoft.Azure.Storage.OperationContext -> string
Public Function AcquireLease (leaseTime As Nullable(Of TimeSpan), proposedLeaseId As String, Optional accessCondition As AccessCondition = Nothing, Optional options As BlobRequestOptions = Nothing, Optional operationContext As OperationContext = Nothing) As String

パラメーター

leaseTime
Nullable<TimeSpan>

リースの取得期間 (秒単位で切り捨て) を表す TimeSpan です。

proposedLeaseId
String

新しいリースの推奨リース ID を表す文字列です。

accessCondition
AccessCondition

要求を実行するために満たす必要のある条件を表す AccessCondition オブジェクトです。

options
BlobRequestOptions

要求の追加オプションを指定する BlobRequestOptions オブジェクトです。 の場合 null、既定のオプションが要求に適用されます。

operationContext
OperationContext

現在の操作のコンテキストを表す OperationContext オブジェクトです。

戻り値

取得したリースの ID です。

適用対象