52 references to TraceOptions
System (26)
compmod\system\diagnostics\DelimitedListTraceListener.cs (6)
166if (IsEnabled(TraceOptions.ProcessId)) 170if (IsEnabled(TraceOptions.LogicalOperationStack)) 174if (IsEnabled(TraceOptions.ThreadId)) 178if (IsEnabled(TraceOptions.DateTime)) 182if (IsEnabled(TraceOptions.Timestamp)) 186if (IsEnabled(TraceOptions.Callstack))
compmod\system\diagnostics\ListenerElementsCollection.cs (8)
116private static readonly ConfigurationProperty _propOutputOpts = new ConfigurationProperty("traceOutputOptions", typeof(TraceOptions), TraceOptions.None, ConfigurationPropertyOptions.None); 167[ConfigurationProperty("traceOutputOptions", DefaultValue = (TraceOptions) TraceOptions.None)] 168public TraceOptions TraceOutputOptions { 170return (TraceOptions) this[_propOutputOpts]; 217if (_attributes != null || ElementInformation.Properties[_propFilter.Name].ValueOrigin == PropertyValueOrigin.SetHere || TraceOutputOptions != TraceOptions.None || !String.IsNullOrEmpty(InitData)) 328if (_attributes != null || ElementInformation.Properties[_propFilter.Name].ValueOrigin == PropertyValueOrigin.SetHere || TraceOutputOptions != TraceOptions.None || !String.IsNullOrEmpty(InitData))
compmod\system\diagnostics\TraceListener.cs (10)
29TraceOptions traceOptions = TraceOptions.None; 158public TraceOptions TraceOutputOptions { 414if (IsEnabled(TraceOptions.ProcessId)) 417if (IsEnabled(TraceOptions.LogicalOperationStack)) { 432if (IsEnabled(TraceOptions.ThreadId)) 435if (IsEnabled(TraceOptions.DateTime)) 438if (IsEnabled(TraceOptions.Timestamp)) 441if (IsEnabled(TraceOptions.Callstack)) 446internal bool IsEnabled(TraceOptions opts) {
compmod\system\diagnostics\XmlWriterTraceListener.cs (2)
247bool writeLogicalOps = IsEnabled(TraceOptions.LogicalOperationStack); 248bool writeCallstack = IsEnabled(TraceOptions.Callstack);
System.Core (18)
System\Diagnostics\Eventing\EventProviderTraceListener.cs (7)
203if ((eventCache != null) && (TraceOutputOptions & TraceOptions.Callstack) != 0) 264if ((eventCache != null) && (TraceOutputOptions & TraceOptions.Callstack) != 0) 293if ((eventCache != null) && (TraceOutputOptions & TraceOptions.Callstack) != 0) 322if ((eventCache != null) && (TraceOutputOptions & TraceOptions.Callstack) != 0) 353if ((eventCache != null) && (TraceOutputOptions & TraceOptions.Callstack) != 0) 368if ((eventCache != null) && (TraceOutputOptions & TraceOptions.Callstack) != 0) 419if ((eventCache != null) && (TraceOutputOptions & TraceOptions.Callstack) != 0)
System\Diagnostics\EventSchemaTraceListener.cs (11)
272private static void BuildHeader(StringBuilder writer, String source, TraceEventType eventType, int id, TraceEventCache eventCache, string relatedActivityId, bool isUserData, TraceOptions opts) { 304if ((TraceOptions.DateTime & opts) != 0) { 326if (eventCache != null && ((TraceOptions.ProcessId | TraceOptions.ThreadId) & opts) != 0) { 355private static void BuildFooter(StringBuilder writer, TraceEventType eventType, TraceEventCache eventCache, bool isUserData, TraceOptions opts) { 406if (eventCache != null && ((TraceOptions.LogicalOperationStack | TraceOptions.Callstack | TraceOptions.Timestamp) & opts) != 0) { 409if ((TraceOptions.Timestamp & opts) != 0) { 415if ((TraceOptions.LogicalOperationStack & opts) != 0) { 428if ((TraceOptions.Callstack & opts) != 0) {
System.Web (8)
IisTraceListener.cs (8)
133if (eventCache == null || TraceOutputOptions == TraceOptions.None) { 139if (IsEnabled(TraceOptions.ProcessId)) { 144if (IsEnabled(TraceOptions.LogicalOperationStack)) { 158if (IsEnabled(TraceOptions.ThreadId)) { 163if (IsEnabled(TraceOptions.DateTime)) { 168if (IsEnabled(TraceOptions.Timestamp)) { 173if (IsEnabled(TraceOptions.Callstack)) { 181private bool IsEnabled(TraceOptions opts) {