Sprog

AuthorizationExtensions.RefreshAllAsync Method

Definition

Refresh all alerts for a resource scope. <item> Mocking. To mock this method, please mock RefreshAllAsync(WaitUntil, ResourceIdentifier, CancellationToken) instead. </item>

public static System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Authorization.Models.RoleManagementAlertOperationResult>> RefreshAllAsync(this Azure.ResourceManager.ArmClient client, Azure.WaitUntil waitUntil, Azure.Core.ResourceIdentifier scope, System.Threading.CancellationToken cancellationToken = default);
static member RefreshAllAsync : Azure.ResourceManager.ArmClient * Azure.WaitUntil * Azure.Core.ResourceIdentifier * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Authorization.Models.RoleManagementAlertOperationResult>>
<Extension()>
Public Function RefreshAllAsync (client As ArmClient, waitUntil As WaitUntil, scope As ResourceIdentifier, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of RoleManagementAlertOperationResult))

Parameters

client
ArmClient

The ArmClient the method will execute against.

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

scope
ResourceIdentifier

The scope that the resource will apply against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

client is null.

Applies to