Gets or sets the object used to marshal the event handler calls issued as a result of a directory change.
[Visual Basic] Public Property SynchronizingObject As ISynchronizeInvoke [C#] public ISynchronizeInvoke SynchronizingObject {get; set;} [C++] public: __property ISynchronizeInvoke* get_SynchronizingObject(); public: __property void set_SynchronizingObject(ISynchronizeInvoke*); [JScript] public function get SynchronizingObject() : ISynchronizeInvoke; public function set SynchronizingObject(ISynchronizeInvoke);
An ISynchronizeInvoke that represents the object used to marshal the event handler calls issued as a result of a directory change. The default is a null reference (in Visual Basic Nothing).
This property will normally be set when the component is placed inside a control or a form, because these components are bound to a specific thread.
FileSystemWatcher Class | FileSystemWatcher Members | System.IO Namespace | ISynchronizeInvoke