Compartilhar via


AssociationCollection.GetIfExists(String, CancellationToken) Método

Definição

Tenta obter detalhes desse recurso do serviço.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations/{associationName}
  • IdAssociationsInterface_Get de operação
public virtual Azure.NullableResponse<Azure.ResourceManager.ServiceNetworking.AssociationResource> GetIfExists (string associationName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.ServiceNetworking.AssociationResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.ServiceNetworking.AssociationResource>
Public Overridable Function GetIfExists (associationName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of AssociationResource)

Parâmetros

associationName
String

Nome da associação.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

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

associationName é nulo.

Aplica-se a