Functions.BlobContainersLeaseViaIdentity 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 Container operation establishes and manages a lock on a container for delete operations. The lock duration can be 15 to 60 seconds, or can be infinite.
public System.Threading.Tasks.Task BlobContainersLeaseViaIdentity (string viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.ILeaseContainerRequest body, Func<System.Net.Http.HttpResponseMessage,System.Threading.Tasks.Task<Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.ILeaseContainerResponse>,System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.ISendAsync sender);
member this.BlobContainersLeaseViaIdentity : string * Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.ILeaseContainerRequest * Func<System.Net.Http.HttpResponseMessage, System.Threading.Tasks.Task<Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.ILeaseContainerResponse>, System.Threading.Tasks.Task> * Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.IEventListener * Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.ISendAsync -> System.Threading.Tasks.Task
Public Function BlobContainersLeaseViaIdentity (viaIdentity As String, body As ILeaseContainerRequest, onOk As Func(Of HttpResponseMessage, Task(Of ILeaseContainerResponse), Task), eventListener As IEventListener, sender As ISendAsync) As Task
Parameters
- viaIdentity
- String
Lease Container request body.
a delegate that is called when the remote service returns 200 (OK).
- eventListener
- IEventListener
an IEventListener instance that will receive events.
- sender
- ISendAsync
an instance of an Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.ISendAsync pipeline to use to make the request.
Returns
A Task that will be complete when handling of the response is completed.