1 write to Name
System (1)
compmod\system\diagnostics\ListenerElementsCollection.cs (1)
70defaultListener.Name = "Default";
16 references to Name
System (16)
compmod\system\diagnostics\ListenerElementsCollection.cs (15)
37return ((ListenerElement) element).Name; 82if (listenerElement.Name.Equals("Default") && listenerElement.TypeName.Equals(typeof(DefaultTraceListener).FullName)) 190if (this.Name.Equals("Default") && this.TypeName.Equals(typeof(DefaultTraceListener).FullName)) { 196return (compareToElem != null) && compareToElem.Name.Equals("Default") 218throw new ConfigurationErrorsException(SR.GetString(SR.Reference_listener_cant_have_properties, Name)); 221throw new ConfigurationErrorsException(SR.GetString(SR.Reference_to_nonexistent_listener, Name)); 223ListenerElement sharedListener = DiagnosticsConfiguration.SharedListeners[Name]; 225throw new ConfigurationErrorsException(SR.GetString(SR.Reference_to_nonexistent_listener, Name)); 235newListener.Name = Name; 254throw new ConfigurationErrorsException(SR.GetString(SR.Could_not_create_listener, Name), e); 329throw new ConfigurationErrorsException(SR.GetString(SR.Reference_listener_cant_have_properties, Name)); 332throw new ConfigurationErrorsException(SR.GetString(SR.Reference_to_nonexistent_listener, Name)); 334ListenerElement sharedListener = DiagnosticsConfiguration.SharedListeners[Name]; 336throw new ConfigurationErrorsException(SR.GetString(SR.Reference_to_nonexistent_listener, Name)); 367throw new ConfigurationErrorsException(SR.GetString(SR.Could_not_create_listener, Name), e);
compmod\system\diagnostics\TraceSource.cs (1)
213TraceListener listener = listeners[listenerElement.Name];