コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the SettingsErrorEventArgs.
 /// </summary>
 /// <param name="error">The exception that occurred.</param>
 /// <param name="action">Describes the action that caused this event.</param>
 /// <param name="fileName">Gets the settings file name.</param>
 public SettingsErrorEventArgs(Exception error, SettingsServiceAction action, string fileName)
 {
     Error    = error;
     Action   = action;
     FileName = fileName;
 }
コード例 #2
0
 /// <summary>Initializes a new instance of the SettingsErrorEventArgs.</summary>
 /// <param name="error">The exception that occurred.</param>
 /// <param name="action">Describes the action that caused this event.</param>
 /// <param name="fileName">Gets the settings file name.</param>
 public SettingsErrorEventArgs(Exception error, SettingsServiceAction action, string?fileName)
 {
     Error    = error ?? throw new ArgumentNullException(nameof(error));
     Action   = action;
     FileName = fileName;
 }