次の方法で共有


FileShareResource.Lease(LeaseShareContent, String, CancellationToken) メソッド

定義

リース共有操作は、削除操作の共有に対するロックを確立および管理します。 ロック期間は、15 ~ 60 秒にすることも、無限にすることもできます。

  • 要求パス/サブスクリプション/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}/lease
  • 操作IdFileShares_Lease
public virtual Azure.Response<Azure.ResourceManager.Storage.Models.LeaseShareResponse> Lease (Azure.ResourceManager.Storage.Models.LeaseShareContent content = default, string xMsSnapshot = default, System.Threading.CancellationToken cancellationToken = default);
abstract member Lease : Azure.ResourceManager.Storage.Models.LeaseShareContent * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Storage.Models.LeaseShareResponse>
override this.Lease : Azure.ResourceManager.Storage.Models.LeaseShareContent * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Storage.Models.LeaseShareResponse>
Public Overridable Function Lease (Optional content As LeaseShareContent = Nothing, Optional xMsSnapshot As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Response(Of LeaseShareResponse)

パラメーター

content
LeaseShareContent

リース共有要求本文。

xMsSnapshot
String

任意。 スナップショットをリースするスナップショット時間を指定します。

cancellationToken
CancellationToken

使用する取り消しトークン。

戻り値

適用対象