Compartilhar via


ServiceEndpointPolicyDefinitionCollection.GetIfExists Método

Definição

Tenta obter detalhes desse recurso do serviço.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/serviceEndpointPolicies/{serviceEndpointPolicyName}/serviceEndpointPolicyDefinitions/{serviceEndpointPolicyDefinitionName}
  • IdServiceEndpointPolicyDefinitions_Get de operação
public virtual Azure.NullableResponse<Azure.ResourceManager.Network.ServiceEndpointPolicyDefinitionResource> GetIfExists (string serviceEndpointPolicyDefinitionName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Network.ServiceEndpointPolicyDefinitionResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Network.ServiceEndpointPolicyDefinitionResource>
Public Overridable Function GetIfExists (serviceEndpointPolicyDefinitionName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of ServiceEndpointPolicyDefinitionResource)

Parâmetros

serviceEndpointPolicyDefinitionName
String

O nome do nome da definição da política do ponto de extremidade de serviço.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

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

serviceEndpointPolicyDefinitionName é nulo.

Aplica-se a