Partilhar via


WebSiteConfigConnectionStringCollection.ExistsAsync Método

Definição

Verifica se o recurso existe no azure.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/configreferences/connectionstrings/{connectionStringKey}
  • Operação IdWebApps_GetSiteConnectionStringKeyVaultReference
public virtual System.Threading.Tasks.Task<Azure.Response<bool>> ExistsAsync (string connectionStringKey, 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 (connectionStringKey As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of Boolean))

Parâmetros

connectionStringKey
String

A cadeia de caracteres a ser usada.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

connectionStringKey é uma cadeia de caracteres vazia e esperava-se que não estivesse vazia.

connectionStringKey é nulo.

Aplica-se a