Partilhar via


ServiceFabricServiceCollection.ExistsAsync(String, CancellationToken) Método

Definição

Verifica se o recurso existe no azure.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applications/{applicationName}/services/{serviceName}
  • Operação IdServices_Get
public virtual System.Threading.Tasks.Task<Azure.Response<bool>> ExistsAsync (string serviceName, System.Threading.CancellationToken cancellationToken = default);
abstract member ExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<bool>>
override this.ExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<bool>>
Public Overridable Function ExistsAsync (serviceName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of Boolean))

Parâmetros

serviceName
String

O nome do recurso de serviço no formato {applicationName}~{serviceName}.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

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

serviceName é nulo.

Aplica-se a