public void wait()
 {
     myWatcher.EnableRaisingEvents = true;
     var dummy = myWatcher.WaitForChanged(
         System.IO.WatcherChangeTypes.Created |
         System.IO.WatcherChangeTypes.Changed);
 }
예제 #2
0
 /// <summary>
 ///   A synchronous method that returns a structure that contains specific information on the change
 ///   that occurred, given the type of change you want to monitor.
 /// </summary>
 /// <returns>
 ///   A <see cref="T:System.IO.WaitForChangedResult"/> that contains specific information on the
 ///   change that occurred.
 /// </returns>
 /// <param name="changeType">The <see cref="T:System.IO.WatcherChangeTypes"/> to watch for.</param>
 /// <filterpriority>2</filterpriority>
 public System.IO.WaitForChangedResult WaitForChanged(System.IO.WatcherChangeTypes changeType)
 {
     return(inner.WaitForChanged(changeType));
 }