InterfaceIFiddlerPreferences
The IFiddlerPreferences Interface is exposed by the FiddlerApplication.Prefs object, and enables callers to Add, Update, and Remove preferences, as well as observe changes to the preferences.
Definition
Namespace:Fiddler
Assembly:FiddlerCore.dll
Syntax:
public interface IFiddlerPreferences : IEnumerable<KeyValuePair<string, string>>, IEnumerable
Inherited Members
Properties
this[string]
Indexer. Returns the value of the preference as a string
Methods
AddWatcher(string, EventHandler<PrefChangeEventArgs>)
Add a Watcher that will be notified when a value has changed within the specified prefix.
Declaration
PreferenceBag.PrefWatcher AddWatcher(string sPrefixFilter, EventHandler<PrefChangeEventArgs> pcehHandler)
Parameters
sPrefixFilter
The prefix of preferences for which changes are interesting
pcehHandler
EventHandler<PrefChangeEventArgs>
The Event handler to notify
Returns
Returns the Watcher object added to the notification list
GetBoolPref(string, bool)
Get a preference's value as a boolean
GetInt32Pref(string, int)
Gets a preference's value as a 32-bit integer
GetStringPref(string, string)
Gets a preference's value as a string
RemovePref(string)
Removes a named preference from storage
Declaration
void RemovePref(string sPrefName)
Parameters
sPrefName
The name of the preference to remove
RemoveWatcher(PrefWatcher)
Removes a previously-created preference Watcher from the notification queue
Declaration
void RemoveWatcher(PreferenceBag.PrefWatcher wliToRemove)
Parameters
wliToRemove
The Watcher to remove
SetBoolPref(string, bool)
Store a boolean value for a preference
SetInt32Pref(string, int)
Store an Int32 value for a preference
SetPrefs(IEnumerable<KeyValuePair<string, string>>)
Store multiple preferences.
Declaration
void SetPrefs(IEnumerable<KeyValuePair<string, string>> prefs)
Parameters
prefs
IEnumerable<KeyValuePair<string, string>>
An enumeration of the preferences' names and values to store.
SetStringPref(string, string)
Store a string value for a preference