Partager via


PrivateDnsZoneCollection.Exists(String, CancellationToken) Méthode

Définition

Vérifie si la ressource existe dans Azure.

  • Chemin de la demande/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}
  • IdPrivateZones_Get d’opération
public virtual Azure.Response<bool> Exists (string privateZoneName, System.Threading.CancellationToken cancellationToken = default);
abstract member Exists : string * System.Threading.CancellationToken -> Azure.Response<bool>
override this.Exists : string * System.Threading.CancellationToken -> Azure.Response<bool>
Public Overridable Function Exists (privateZoneName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of Boolean)

Paramètres

privateZoneName
String

Nom de la zone DNS privé (sans point de fin).

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

privateZoneName est une chaîne vide et devait être non vide.

privateZoneName a la valeur null.

S’applique à