IWpfTableControl.ForceUpdateAsync Method

Definition

Force the table control to begin an update (which may not happen immediately).

C++
public:
 System::Threading::Tasks::Task<Microsoft::VisualStudio::Shell::TableControl::EntriesChangedEventArgs ^> ^ ForceUpdateAsync();

Returns

The version number of the pending update.

Remarks

There should be no need to call this method (updates will happen automatically if there is a change). It is exposed here primarily to simplify testing.

To avoid deadlocks you should use something similar to the following when calling this method:

var r =  ThreadHelper.JoinableTaskFactory.Run<EntriesChangedEventArgs>(async delegate
          {
            return await this.TableControl.ForceUpdateAsync();
          });

Applies to

Produkt Versiounen
Visual Studio SDK 2015, 2017, 2019, 2022