Partilhar via


PublicIPPrefixCollection.ExistsAsync Método

Definição

Verifica se o recurso existe no azure.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIpPrefixName}
  • Operação IdPublicIPPrefixes_Get
public virtual System.Threading.Tasks.Task<Azure.Response<bool>> ExistsAsync (string publicIPPrefixName, string expand = default, System.Threading.CancellationToken cancellationToken = default);
abstract member ExistsAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<bool>>
override this.ExistsAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<bool>>
Public Overridable Function ExistsAsync (publicIPPrefixName As String, Optional expand As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of Boolean))

Parâmetros

publicIPPrefixName
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

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

publicIPPrefixName é nulo.

Aplica-se a