Partager via


VirtualNetworkResource.GetVirtualNetworkPeering Méthode

Définition

Obtient le peering de réseau virtuel spécifié.

  • Chemin de la demande/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/virtualNetworkPeerings/{virtualNetworkPeeringName}
  • IdVirtualNetworkPeerings_Get d’opération
public virtual Azure.Response<Azure.ResourceManager.Network.VirtualNetworkPeeringResource> GetVirtualNetworkPeering (string virtualNetworkPeeringName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetVirtualNetworkPeering : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Network.VirtualNetworkPeeringResource>
override this.GetVirtualNetworkPeering : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Network.VirtualNetworkPeeringResource>
Public Overridable Function GetVirtualNetworkPeering (virtualNetworkPeeringName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of VirtualNetworkPeeringResource)

Paramètres

virtualNetworkPeeringName
String

Nom du peering de réseau virtuel.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

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

virtualNetworkPeeringName a la valeur null.

S’applique à