ShareLeaseClient.Change(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 Change(String, CancellationToken) operation changes the lease
of an active lease. A change must include the current
LeaseId and a new proposedId
.
public virtual Azure.Response<Azure.Storage.Files.Shares.Models.ShareFileLease> Change (string proposedId, System.Threading.CancellationToken cancellationToken = default);
abstract member Change : string * System.Threading.CancellationToken -> Azure.Response<Azure.Storage.Files.Shares.Models.ShareFileLease>
override this.Change : string * System.Threading.CancellationToken -> Azure.Response<Azure.Storage.Files.Shares.Models.ShareFileLease>
Public Overridable Function Change (proposedId As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of ShareFileLease)
Parameters
- proposedId
- String
An optional proposed lease ID, in a GUID string format. A RequestFailedException will be thrown if the proposed lease ID is not in the correct format.
- cancellationToken
- CancellationToken
Optional CancellationToken to propagate notifications that the operation should be cancelled.
Returns
A Response<T> describing the lease.
Remarks
A RequestFailedException will be thrown if a failure occurs.
Applies to
Azure SDK for .NET