Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Constructor: SettingsFile<TSettings>(string, bool)

  • Declared in: RT.Serialization.Settings.SettingsFile<TSettings>

Declaration

public SettingsFile<TSettings>(
    string filename,
    bool throwOnError
)

Summary

Configures filename as the location of the settings file, bypassing all logic related to portable mode, and loads the settings. Avoid where possible and use the other constructor.

Parameters

stringfilename Full path and filename of the settings file.
boolthrowOnError If true, any errors while loading the file are silently suppressed and a default instance is loaded instead. If false, such errors are propagated to the caller as exceptions. This value is also used as the default value for throwOnError when calling SettingsFile<TSettings>.Save(bool?).