System.Diagnostics.Events.ExceptionTraceEvent.ExceptionTraceEvent C# (CSharp) Method

ExceptionTraceEvent() public method

Initializes a new instance of the ExceptionTraceEvent class.
public ExceptionTraceEvent ( TraceEventType eventType, int eventId, Exception exception )
eventType TraceEventType
eventId int
exception Exception
		public ExceptionTraceEvent(TraceEventType eventType, int eventId, Exception exception)
			: base(eventType, eventId, new Lazy<string>(() => exception.Message + Environment.NewLine + exception.ToString()))
		{
			Guard.NotNull(() => exception, exception);

			this.Exception = exception;
		}

Same methods

ExceptionTraceEvent::ExceptionTraceEvent ( TraceEventType eventType, int eventId, Exception exception, string message )
ExceptionTraceEvent