6 private string _logName =
"Application";
8 private string _machineName =
".";
10 private string _source;
12 private string _messageResourceFile;
14 private string _parameterResourceFile;
16 private string _categoryResourceFile;
18 private int _categoryCount;
69 return _messageResourceFile;
73 _messageResourceFile = value;
83 return _parameterResourceFile;
87 _parameterResourceFile = value;
97 return _categoryResourceFile;
101 _categoryResourceFile = value;
112 return _categoryCount;
116 if (value > 65535 || value < 0)
120 _categoryCount = value;
141 _machineName = machineName;
144 private EventSourceCreationData(
string source,
string logName,
string machineName,
string messageResourceFile,
string parameterResourceFile,
string categoryResourceFile,
short categoryCount)
148 _machineName = machineName;
149 _messageResourceFile = messageResourceFile;
150 _parameterResourceFile = parameterResourceFile;
151 _categoryResourceFile = categoryResourceFile;
string Source
Gets or sets the name to register with the event log as an event source.
string MessageResourceFile
Gets or sets the path of the message resource file that contains message formatting strings for the s...
Represents the configuration settings used to create an event log source on the local computer or a r...
The exception that is thrown when the value of an argument is outside the allowable range of values a...
string MachineName
Gets or sets the name of the computer on which to register the event source.
int CategoryCount
Gets or sets the number of categories in the category resource file.
string LogName
Gets or sets the name of the event log to which the source writes entries.
string ParameterResourceFile
Gets or sets the path of the resource file that contains message parameter strings for the source.
string CategoryResourceFile
Gets or sets the path of the resource file that contains category strings for the source.
EventSourceCreationData(string source, string logName)
Initializes a new instance of the T:System.Diagnostics.EventSourceCreationData class with a specified...