Click or drag to resize
PreferenceBagAddWatcher Method
Add a watcher for changes to the specified preference or preference branch.

Namespace: Fiddler
Assembly: FiddlerCore4 (in FiddlerCore4.dll) Version: 4.6.2.0
Syntax
public PreferenceBagPrefWatcher AddWatcher(
	string sPrefixFilter,
	EventHandler<PrefChangeEventArgs> pcehHandler
)

Parameters

sPrefixFilter
Type: SystemString
Preference branch to monitor, or String.Empty to watch all
pcehHandler
Type: SystemEventHandlerPrefChangeEventArgs
The EventHandler accepting PrefChangeEventArgs to notify

Return Value

Type: PreferenceBagPrefWatcher
Returns the PrefWatcher object which has been added, store to pass to RemoveWatcher later.

Implements

IFiddlerPreferencesAddWatcher(String, EventHandlerPrefChangeEventArgs)
See Also