Partilhar via


NetworkFunctionCollection.GetIfExistsAsync(String, CancellationToken) Método

Definição

Tenta obter detalhes para esse recurso do serviço.

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

Parâmetros

networkFunctionName
String

O nome do recurso de função de rede.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

networkFunctionName é uma cadeia de caracteres vazia e esperava-se que não estivesse vazia.

networkFunctionName é nulo.

Aplica-se a