Freigeben über


ComputeNodeOperationsExtensions.DeleteUserAsync Methode

Definition

Löscht ein Benutzerkonto aus dem angegebenen Computeknoten.

public static System.Threading.Tasks.Task<Microsoft.Azure.Batch.Protocol.Models.ComputeNodeDeleteUserHeaders> DeleteUserAsync (this Microsoft.Azure.Batch.Protocol.IComputeNodeOperations operations, string poolId, string nodeId, string userName, Microsoft.Azure.Batch.Protocol.Models.ComputeNodeDeleteUserOptions computeNodeDeleteUserOptions = default, System.Threading.CancellationToken cancellationToken = default);
static member DeleteUserAsync : Microsoft.Azure.Batch.Protocol.IComputeNodeOperations * string * string * string * Microsoft.Azure.Batch.Protocol.Models.ComputeNodeDeleteUserOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Batch.Protocol.Models.ComputeNodeDeleteUserHeaders>
<Extension()>
Public Function DeleteUserAsync (operations As IComputeNodeOperations, poolId As String, nodeId As String, userName As String, Optional computeNodeDeleteUserOptions As ComputeNodeDeleteUserOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ComputeNodeDeleteUserHeaders)

Parameter

operations
IComputeNodeOperations

Die Vorgangsgruppe für diese Erweiterungsmethode.

poolId
String

Die ID des Pools, der den Computeknoten enthält.

nodeId
String

Die ID des Computers, auf dem Sie ein Benutzerkonto löschen möchten.

userName
String

Der Name des zu löschenden Benutzerkontos.

computeNodeDeleteUserOptions
ComputeNodeDeleteUserOptions

Zusätzliche Parameter für den Vorgang

cancellationToken
CancellationToken

Das Abbruchtoken.

Gibt zurück

Hinweise

Sie können ein Benutzerkonto nur in einem Computeknoten löschen, wenn es sich im Leerlauf- oder Ausführungszustand befindet.

Gilt für: