Lease Client. Break(CancellationToken) Method
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 Break(CancellationToken) operation breaks the files's previously-acquired lease (if it exists).
Once a lease is broken, it cannot be renewed. Any authorized request can break the lease; the request is not required to specify a matching lease ID.
A lease that has been broken can also be released. A client can immediately acquire a file lease that has been released.
public virtual Azure.Response<Azure.Storage.Files.Shares.Models.ShareFileLease> Break (System.Threading.CancellationToken cancellationToken = default);
abstract member Break : System.Threading.CancellationToken -> Azure.Response<Azure.Storage.Files.Shares.Models.ShareFileLease> override this.Break : System.Threading.CancellationToken -> Azure.Response<Azure.Storage.Files.Shares.Models.ShareFileLease>
Public Overridable Function Break (Optional cancellationToken As CancellationToken = Nothing) As Response(Of ShareFileLease)
Optional System.Threading.CancellationToken to propagate notifications that the operation should be cancelled.
A Response<T> describing the broken lease.
A RequestFailedException will be thrown if a failure occurs.