CloudBlob.AcquireLeaseAsync メソッド

定義

オーバーロード

AcquireLeaseAsync(Nullable<TimeSpan>, String, AccessCondition, BlobRequestOptions, OperationContext, CancellationToken)

この BLOB のリースを取得するための非同期操作を開始します。

AcquireLeaseAsync(Nullable<TimeSpan>, String, AccessCondition, BlobRequestOptions, OperationContext)

この BLOB のリースを取得するための非同期操作を開始します。

AcquireLeaseAsync(Nullable<TimeSpan>, String)

この BLOB のリースを取得するための非同期操作を開始します。

AcquireLeaseAsync(Nullable<TimeSpan>, String, CancellationToken)

この BLOB のリースを取得するための非同期操作を開始します。

AcquireLeaseAsync(Nullable<TimeSpan>, String, AccessCondition, BlobRequestOptions, OperationContext, CancellationToken)

この BLOB のリースを取得するための非同期操作を開始します。

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

パラメーター

leaseTime
Nullable<TimeSpan>

リースの取得期間 (秒単位で切り捨て) を表す TimeSpan です。 null の場合、無限リースが取得されます。 null でない場合は、15 秒から 60 秒にする必要があります。

proposedLeaseId
String

新しいリースの推奨リース ID を表す文字列です。推奨リース ID がない場合は null です。

accessCondition
AccessCondition

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

options
BlobRequestOptions

要求の追加オプションを指定する BlobRequestOptions オブジェクトです。

operationContext
OperationContext

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

cancellationToken
CancellationToken

タスクの完了を待機しているときに監視する CancellationToken

戻り値

非同期操作を表す、string 型の Task<TResult> オブジェクト。

属性

適用対象

AcquireLeaseAsync(Nullable<TimeSpan>, String, AccessCondition, BlobRequestOptions, OperationContext)

この BLOB のリースを取得するための非同期操作を開始します。

[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task<string> AcquireLeaseAsync (TimeSpan? leaseTime, string proposedLeaseId, Microsoft.Azure.Storage.AccessCondition accessCondition, Microsoft.Azure.Storage.Blob.BlobRequestOptions options, Microsoft.Azure.Storage.OperationContext operationContext);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member AcquireLeaseAsync : Nullable<TimeSpan> * string * Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.Blob.BlobRequestOptions * Microsoft.Azure.Storage.OperationContext -> System.Threading.Tasks.Task<string>
override this.AcquireLeaseAsync : Nullable<TimeSpan> * string * Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.Blob.BlobRequestOptions * Microsoft.Azure.Storage.OperationContext -> System.Threading.Tasks.Task<string>
Public Overridable Function AcquireLeaseAsync (leaseTime As Nullable(Of TimeSpan), proposedLeaseId As String, accessCondition As AccessCondition, options As BlobRequestOptions, operationContext As OperationContext) As Task(Of String)

パラメーター

leaseTime
Nullable<TimeSpan>

リースの取得期間 (秒単位で切り捨て) を表す TimeSpan です。 null の場合、無限リースが取得されます。 null でない場合は、15 秒から 60 秒にする必要があります。

proposedLeaseId
String

新しいリースの推奨リース ID を表す文字列です。推奨リース ID がない場合は null です。

accessCondition
AccessCondition

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

options
BlobRequestOptions

要求の追加オプションを指定する BlobRequestOptions オブジェクトです。

operationContext
OperationContext

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

戻り値

非同期操作を表す、string 型の Task<TResult> オブジェクト。

属性

適用対象

AcquireLeaseAsync(Nullable<TimeSpan>, String)

この BLOB のリースを取得するための非同期操作を開始します。

[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task<string> AcquireLeaseAsync (TimeSpan? leaseTime, string proposedLeaseId = default);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member AcquireLeaseAsync : Nullable<TimeSpan> * string -> System.Threading.Tasks.Task<string>
override this.AcquireLeaseAsync : Nullable<TimeSpan> * string -> System.Threading.Tasks.Task<string>
Public Overridable Function AcquireLeaseAsync (leaseTime As Nullable(Of TimeSpan), Optional proposedLeaseId As String = Nothing) As Task(Of String)

パラメーター

leaseTime
Nullable<TimeSpan>

リースの取得期間 (秒単位で切り捨て) を表す TimeSpan です。 null の場合、無限リースが取得されます。 null でない場合は、15 秒から 60 秒にする必要があります。

proposedLeaseId
String

新しいリースの推奨リース ID を表す文字列です。推奨リース ID がない場合は null です。

戻り値

非同期操作を表す、string 型の Task<TResult> オブジェクト。

属性

適用対象

AcquireLeaseAsync(Nullable<TimeSpan>, String, CancellationToken)

この BLOB のリースを取得するための非同期操作を開始します。

[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task<string> AcquireLeaseAsync (TimeSpan? leaseTime, string proposedLeaseId, System.Threading.CancellationToken cancellationToken);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member AcquireLeaseAsync : Nullable<TimeSpan> * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
override this.AcquireLeaseAsync : Nullable<TimeSpan> * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Public Overridable Function AcquireLeaseAsync (leaseTime As Nullable(Of TimeSpan), proposedLeaseId As String, cancellationToken As CancellationToken) As Task(Of String)

パラメーター

leaseTime
Nullable<TimeSpan>

リースの取得期間 (秒単位で切り捨て) を表す TimeSpan です。 null の場合、無限リースが取得されます。 null でない場合は、15 秒から 60 秒にする必要があります。

proposedLeaseId
String

新しいリースの推奨リース ID を表す文字列です。推奨リース ID がない場合は null です。

cancellationToken
CancellationToken

タスクの完了を待機しているときに監視する CancellationToken

戻り値

非同期操作を表す、string 型の Task<TResult> オブジェクト。

属性

適用対象