Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ValidateSettings()

static EventSourceSettings System.Diagnostics.Tracing.EventSource.ValidateSettings ( EventSourceSettings settings)
inlinestaticprivateinherited

Definition at line 2730 of file EventSource.cs.

2731 {
2732 if ((settings & (EventSourceSettings.EtwManifestEventFormat | EventSourceSettings.EtwSelfDescribingEventFormat)) == (EventSourceSettings.EtwManifestEventFormat | EventSourceSettings.EtwSelfDescribingEventFormat))
2733 {
2734 throw new ArgumentException(SR.EventSource_InvalidEventFormat, "settings");
2735 }
2736 if ((settings & (EventSourceSettings.EtwManifestEventFormat | EventSourceSettings.EtwSelfDescribingEventFormat)) == 0)
2737 {
2738 settings |= EventSourceSettings.EtwSelfDescribingEventFormat;
2739 }
2740 return settings;
2741 }

References System.SR.EventSource_InvalidEventFormat.

Referenced by System.Diagnostics.Tracing.EventSource.EventSource(), and System.Diagnostics.Tracing.EventSource.EventSource().