Gets or sets the object used to marshal the event handler calls issued as a result of a directory change.
Assembly: System (in System.dll)
[<BrowsableAttribute(false)>] [<IODescriptionAttribute("FSW_SynchronizingObject")>] member SynchronizingObject : ISynchronizeInvoke with get, set
When the Changed, Created, Deleted, and Renamed events are handled by a visual Windows Forms component, such as a Button, accessing the component through the system thread pool might not work, or may result in an exception. Avoid this by setting to a Windows Forms component, which causes the methods that handle the Changed, Created, Deleted, and Renamed events to be called on the same thread on which the component was created.
If the FileSystemWatcher is used inside Visual Studio 2005 in a Windows Forms designer, automatically sets to the control that contains the FileSystemWatcher. For example, if you place a FileSystemWatcher on a designer for Form1 (which inherits from Form) the property of FileSystemWatcher is set to the instance of Form1.
Available since 1.1