Partilhar via


NetworkProfileCollection.GetIfExistsAsync Método

Definição

Tenta obter detalhes desse recurso do serviço.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkProfiles/{networkProfileName}
  • IdNetworkProfiles_Get de operação
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Network.NetworkProfileResource>> GetIfExistsAsync (string networkProfileName, string expand = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Network.NetworkProfileResource>>
override this.GetIfExistsAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Network.NetworkProfileResource>>
Public Overridable Function GetIfExistsAsync (networkProfileName As String, Optional expand As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of NetworkProfileResource))

Parâmetros

networkProfileName
String

O nome do prefixo de IP público.

expand
String

Expande os recursos referenciados.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

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

networkProfileName é nulo.

Aplica-se a