1 write to Name
System.Configuration.ConfigurationManager (1)
System\Diagnostics\ListenerElementsCollection.cs (1)
46
defaultListener.
Name
= "Default";
16 references to Name
System.Configuration.ConfigurationManager (16)
System\Diagnostics\ListenerElementsCollection.cs (15)
23
protected override object GetElementKey(ConfigurationElement element) => ((ListenerElement)element).
Name
;
59
if (listenerElement.
Name
.Equals("Default") && listenerElement.TypeName.Equals(typeof(DefaultTraceListener).FullName))
157
if (
Name
.Equals("Default") && TypeName.Equals(typeof(DefaultTraceListener).FullName))
164
return (compareToElem != null) && compareToElem.
Name
.Equals("Default")
188
throw new ConfigurationErrorsException(SR.Format(SR.Reference_listener_cant_have_properties,
Name
));
193
throw new ConfigurationErrorsException(SR.Format(SR.Reference_to_nonexistent_listener,
Name
));
196
ListenerElement sharedListener = DiagnosticsConfiguration.SharedListeners[
Name
];
199
throw new ConfigurationErrorsException(SR.Format(SR.Reference_to_nonexistent_listener,
Name
));
210
newListener.Name =
Name
;
225
throw new ConfigurationErrorsException(SR.Format(SR.Could_not_create_listener,
Name
), e);
314
throw new ConfigurationErrorsException(SR.Format(SR.Reference_listener_cant_have_properties,
Name
));
319
throw new ConfigurationErrorsException(SR.Format(SR.Reference_to_nonexistent_listener,
Name
));
322
ListenerElement sharedListener = DiagnosticsConfiguration.SharedListeners[
Name
];
325
throw new ConfigurationErrorsException(SR.Format(SR.Reference_to_nonexistent_listener,
Name
));
365
throw new ConfigurationErrorsException(SR.Format(SR.Could_not_create_listener,
Name
), e);
System\Diagnostics\TraceConfiguration.cs (1)
89
TraceListener listener = traceSource.Listeners[listenerElement.
Name
];