Partilhar via


VirtualHubRouteTableV2Collection.GetIfExistsAsync Método

Definição

Tenta obter detalhes desse recurso do serviço.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/routeTables/{routeTableName}
  • Operação IdVirtualHubRouteTableV2s_Get
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Network.VirtualHubRouteTableV2Resource>> GetIfExistsAsync (string routeTableName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Network.VirtualHubRouteTableV2Resource>>
override this.GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Network.VirtualHubRouteTableV2Resource>>
Public Overridable Function GetIfExistsAsync (routeTableName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of VirtualHubRouteTableV2Resource))

Parâmetros

routeTableName
String

O nome do VirtualHubRouteTableV2.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

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

routeTableName é nulo.

Aplica-se a