Compartilhar via


DataReplicationEventCollection.GetAsync(String, CancellationToken) Método

Definição

Obtém os detalhes do evento.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/events/{eventName}
  • Operação IdEvent_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.RecoveryServicesDataReplication.DataReplicationEventResource>> GetAsync (string eventName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.RecoveryServicesDataReplication.DataReplicationEventResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.RecoveryServicesDataReplication.DataReplicationEventResource>>
Public Overridable Function GetAsync (eventName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of DataReplicationEventResource))

Parâmetros

eventName
String

O nome do evento.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

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

eventName é nulo.

Aplica-se a