Partilhar via


SearchIndexClient.GetAliasAsync(String, CancellationToken) Método

Definição

Recupera uma definição de alias.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Search.Documents.Indexes.Models.SearchAlias>> GetAliasAsync (string aliasName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAliasAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Search.Documents.Indexes.Models.SearchAlias>>
override this.GetAliasAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Search.Documents.Indexes.Models.SearchAlias>>
Public Overridable Function GetAliasAsync (aliasName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SearchAlias))

Parâmetros

aliasName
String

O nome do alias a ser recuperado.

cancellationToken
CancellationToken

Opcional CancellationToken para propagar notificações de que a operação deve ser cancelada.

Retornos

SearchAlias definido por aliasName.

Aplica-se a