Partilhar via


MachineExtensionCollection.GetAsync(String, CancellationToken) Método

Definição

A operação para obter a extensão.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/{name}/extensions/{extensionName}
  • Operação IdMachineExtensions_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ConnectedVMwarevSphere.MachineExtensionResource>> GetAsync (string extensionName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ConnectedVMwarevSphere.MachineExtensionResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ConnectedVMwarevSphere.MachineExtensionResource>>
Public Overridable Function GetAsync (extensionName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of MachineExtensionResource))

Parâmetros

extensionName
String

O nome da extensão do computador.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

extensionName é uma cadeia de caracteres vazia e era esperado que não estivesse vazio.

extensionName é nulo.

Aplica-se a