FileShareResource.Lease(LeaseShareContent, String, CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The Lease Share operation establishes and manages a lock on a share for delete operations. The lock duration can be 15 to 60 seconds, or can be infinite.
- Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}/lease
- Operation Id: FileShares_Lease
- Default Api Version: 2023-05-01
- Resource: FileShareResource
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)
Parameters
- content
- LeaseShareContent
Lease Share request body.
- xMsSnapshot
- String
Optional. Specify the snapshot time to lease a snapshot.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Applies to
Collabora con noi su GitHub
L'origine di questo contenuto è disponibile in GitHub, in cui è anche possibile creare ed esaminare i problemi e le richieste pull. Per ulteriori informazioni, vedere la guida per i collaboratori.