영어로 읽기

다음을 통해 공유


ComputeNodeOperationsExtensions.DeleteUserAsync Method

Definition

Deletes a user Account from the specified Compute Node.

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);

Parameters

operations
IComputeNodeOperations

The operations group for this extension method.

poolId
String

The ID of the Pool that contains the Compute Node.

nodeId
String

The ID of the machine on which you want to delete a user Account.

userName
String

The name of the user Account to delete.

computeNodeDeleteUserOptions
ComputeNodeDeleteUserOptions

Additional parameters for the operation

cancellationToken
CancellationToken

The cancellation token.

Returns

Remarks

You can delete a user Account to a Compute Node only when it is in the idle or running state.

Applies to

제품 버전
Azure SDK for .NET Latest