Partager via


NetworkPacketBrokerCollection.GetIfExists(String, CancellationToken) Méthode

Définition

Tente d’obtenir les détails de cette ressource à partir du service.

  • Chemin de la demande/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkPacketBrokers/{networkPacketBrokerName}
  • IdNetworkPacketBrokers_Get d’opération
public virtual Azure.NullableResponse<Azure.ResourceManager.ManagedNetworkFabric.NetworkPacketBrokerResource> GetIfExists (string networkPacketBrokerName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.ManagedNetworkFabric.NetworkPacketBrokerResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.ManagedNetworkFabric.NetworkPacketBrokerResource>
Public Overridable Function GetIfExists (networkPacketBrokerName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of NetworkPacketBrokerResource)

Paramètres

networkPacketBrokerName
String

Nom du répartiteur de paquets réseau.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

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

networkPacketBrokerName a la valeur null.

S’applique à