你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

DeallocateNodeOperation.WaitForCompletionAsync(CancellationToken) Method

Definition

Periodically calls the server till the long-running operation completes.

public override System.Threading.Tasks.ValueTask<Azure.Response<Azure.Compute.Batch.BatchNode>> WaitForCompletionAsync(System.Threading.CancellationToken cancellationToken = default);
override this.WaitForCompletionAsync : System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<Azure.Response<Azure.Compute.Batch.BatchNode>>
Public Overrides Function WaitForCompletionAsync (Optional cancellationToken As CancellationToken = Nothing) As ValueTask(Of Response(Of BatchNode))

Parameters

cancellationToken
CancellationToken

A CancellationToken used for the periodical service calls.

Returns

The last HTTP response received from the server.

Remarks

This method will periodically call GetNode till the state its state is not Deallocating or the node is not found. If not found the HasValue method will return false and the value will be null.

Applies to