Udostępnij za pośrednictwem


ICollectionOperations.RestartVmAsync Method

Definition

Restarts VM associated with a collection.

public System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.RemoteApp.Models.OperationResultWithTrackingId> RestartVmAsync (string collectionName, Microsoft.WindowsAzure.Management.RemoteApp.Models.RestartVmCommandParameter details, System.Threading.CancellationToken cancellationToken);
abstract member RestartVmAsync : string * Microsoft.WindowsAzure.Management.RemoteApp.Models.RestartVmCommandParameter * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.RemoteApp.Models.OperationResultWithTrackingId>
Public Function RestartVmAsync (collectionName As String, details As RestartVmCommandParameter, cancellationToken As CancellationToken) As Task(Of OperationResultWithTrackingId)

Parameters

collectionName
String

The RemoteApp collection name containing the VM to be restarted.

details
RestartVmCommandParameter

The details of VM to be restarted.

cancellationToken
CancellationToken

Cancellation token.

Returns

The response containing the operation tracking id.

Applies to