다음을 통해 공유


IAuditLogService.WriteEventAsync 메서드

정의

IDE 관리 감사 로그 instance 이벤트 항목을 씁니다.

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

매개 변수

eventType
AuditLogEventType

기록되는 이벤트의 유형입니다.

source
AuditLogSource

이벤트의 원본인 이 미리 결정된 목록은 감사 모니터링 도구에 사용하여 알려진 원본으로 빠르게 필터링합니다.

message
String

이벤트 콘텐츠로 표시할 메시지입니다.

eventData
IReadOnlyDictionary<String,String>

이벤트에 포함할 다른 모든 데이터입니다.

cancellationToken
CancellationToken

모니터링할 취소 토큰입니다.

반환

이벤트가 감사 로그에 제출될 때 완료되는 작업입니다.

적용 대상