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