CloudBlob.BreakLease メソッド

定義

この BLOB に対する現在のリースを中断します。

[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

パラメーター

breakPeriod
Nullable<TimeSpan>

リースを維持できる期間 (秒単位で切り捨て) を表す TimeSpan です。 null の場合、中断期間は、現在のリースの残り時間となります。無限リースの場合は 0 です。

accessCondition
AccessCondition

要求を実行するために満たす必要のある条件を表す AccessCondition オブジェクトです。 null の場合、条件は使用されません。

options
BlobRequestOptions

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

operationContext
OperationContext

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

戻り値

リースが終了するまでの期間 (秒単位) を表す TimeSpan です。

属性

適用対象