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