Compartilhar via


IAuditLogService.WriteEventAsync Método

Definição

Grava uma entrada de evento na instância de log de auditoria gerenciada do IDE.

public System.Threading.Tasks.Task WriteEventAsync (Microsoft.VisualStudio.RpcContracts.Logging.AuditLogEventType eventType, Microsoft.VisualStudio.RpcContracts.Logging.AuditLogSource source, string message, System.Collections.Generic.IReadOnlyDictionary<string,string>? eventData, System.Threading.CancellationToken cancellationToken);
abstract member WriteEventAsync : Microsoft.VisualStudio.RpcContracts.Logging.AuditLogEventType * Microsoft.VisualStudio.RpcContracts.Logging.AuditLogSource * string * System.Collections.Generic.IReadOnlyDictionary<string, string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function WriteEventAsync (eventType As AuditLogEventType, source As AuditLogSource, message As String, eventData As IReadOnlyDictionary(Of String, String), cancellationToken As CancellationToken) As Task

Parâmetros

eventType
AuditLogEventType

Tipo do evento que está sendo registrado.

source
AuditLogSource

Origem do evento, essa lista predeterminada é usada para ferramentas de monitoramento de auditoria para filtrar rapidamente fontes conhecidas.

message
String

Mensagem a ser exibida como o conteúdo do evento.

eventData
IReadOnlyDictionary<String,String>

Quaisquer outros dados a serem incluídos no evento.

cancellationToken
CancellationToken

Token de cancelamento a ser monitorado.

Retornos

uma Tarefa que é concluída quando o evento é enviado para o log de auditoria.

Aplica-se a