Freigeben über


SmartGroupsOperationsExtensions.ChangeStateAsync Methode

Definition

Ändern Sie den Status einer intelligenten Gruppe.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.AlertsManagement.Models.SmartGroup> ChangeStateAsync (this Microsoft.Azure.Management.AlertsManagement.ISmartGroupsOperations operations, string smartGroupId, string newState, System.Threading.CancellationToken cancellationToken = default);
static member ChangeStateAsync : Microsoft.Azure.Management.AlertsManagement.ISmartGroupsOperations * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.AlertsManagement.Models.SmartGroup>
<Extension()>
Public Function ChangeStateAsync (operations As ISmartGroupsOperations, smartGroupId As String, newState As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of SmartGroup)

Parameter

operations
ISmartGroupsOperations

Die Vorgangsgruppe für diese Erweiterungsmethode.

smartGroupId
String

Eindeutige ID für intelligente Gruppen.

newState
String

Neuer Status der Warnung. Mögliche Werte: "Neu", "Bestätigt", "Geschlossen"

cancellationToken
CancellationToken

Das Abbruchtoken.

Gibt zurück

Gilt für: