PreferenceBagAddWatcher Method |
Add a watcher for changes to the specified preference or preference branch.
Namespace: FiddlerAssembly: FiddlerCore4 (in FiddlerCore4.dll) Version: 4.6.2.0
Syntax public PreferenceBagPrefWatcher AddWatcher(
string sPrefixFilter,
EventHandler<PrefChangeEventArgs> pcehHandler
)
Public Function AddWatcher (
sPrefixFilter As String,
pcehHandler As EventHandler(Of PrefChangeEventArgs)
) As PreferenceBagPrefWatcher
public:
virtual PreferenceBagPrefWatcher AddWatcher(
String^ sPrefixFilter,
EventHandler<PrefChangeEventArgs^>^ pcehHandler
) sealed
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:
PreferenceBagPrefWatcherReturns the PrefWatcher object which has been added, store to pass to RemoveWatcher later.
Implements
IFiddlerPreferencesAddWatcher(String, EventHandlerPrefChangeEventArgs)See Also