GH_FileWatcherCreateFileWatcher Method (String, GH_FileWatcherEvents, GH_FileWatcherFileChangedSimple) |
Create a new FileSystem Watcher object aimed at a specific file.
Namespace:
Grasshopper.Kernel
Assembly:
Grasshopper (in Grasshopper.dll)
Syntax public static GH_FileWatcher CreateFileWatcher(
string filePath,
GH_FileWatcherEvents events,
GH_FileWatcherFileChangedSimple delegate
)
Public Shared Function CreateFileWatcher (
filePath As String,
events As GH_FileWatcherEvents,
delegate As GH_FileWatcherFileChangedSimple
) As GH_FileWatcher
Parameters
- filePath
- Type: SystemString
File to watch. - events
- Type: Grasshopper.KernelGH_FileWatcherEvents
Events to watch for. - delegate
- Type: Grasshopper.KernelGH_FileWatcherFileChangedSimple
Callback delegate.
Return Value
Type:
GH_FileWatcherA new filewatcher aimed at the specified file.
See Also