Interface IPluginSetting
Represents a setting tied to a plugin
public interface IPluginSetting
Fields
SerializerOptions
The JSON serializer options used when serializing settings
protected static readonly JsonSerializerOptions SerializerOptions
Field Value
Properties
AutoSave
Gets or sets whether changes must automatically be saved
bool AutoSave { get; set; }
Property Value
Name
The name of the setting, unique to this plugin
string Name { get; }
Property Value
Methods
RejectChanges()
Resets the setting to the last saved value
void RejectChanges()
Save()
Saves the setting
void Save()
Events
SettingChanged
Occurs when the value of the setting has been changed
event EventHandler? SettingChanged
Event Type
SettingSaved
Occurs when the value of the setting has been saved
event EventHandler? SettingSaved