FileShareResource.Lease(LeaseShareContent, String, CancellationToken) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
リース共有操作は、削除操作の共有に対するロックを確立および管理します。 ロック期間は、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
使用する取り消しトークン。
戻り値
適用対象
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
Azure SDK for .NET