Compartir a través de


PeeringServiceCollection.GetIfExists(String, CancellationToken) Método

Definición

Intenta obtener detalles de este recurso del servicio.

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Peering/peeringServices/{peeringServiceName}
  • IdPeeringServices_Get de operación
public virtual Azure.NullableResponse<Azure.ResourceManager.Peering.PeeringServiceResource> GetIfExists (string peeringServiceName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Peering.PeeringServiceResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Peering.PeeringServiceResource>
Public Overridable Function GetIfExists (peeringServiceName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of PeeringServiceResource)

Parámetros

peeringServiceName
String

Nombre del emparejamiento.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

peeringServiceName es una cadena vacía y se espera que no esté vacía.

peeringServiceName es null.

Se aplica a