動作環境
Windows 7 Pro (32bit)
Microsoft Visual Studio 2017 Community
Sublime Text 2
DispatcherObject
DispatcherObjectを使おうとした。
using System.Windows.Threading;
が必要のようだ。
using文を付けるとIntelliSenseでDispatcherObjectの入力候補が表示されるようになった。
VerifyAccess()
一方で、this.VerifyAccess();
の方はIntelliSenseで入力候補として表示されない。入力後にビルドは成功する。
名前空間: System.Windows.Threading
理由は以下に記載されている。"advanced scenarios"とのこと。
Why are DispatcherObject.CheckAccess() and VerifyAccess() hidden from Intellisense?
A Microsoft employee recently stated CheckAccess is used only for "advanced scenarios", so they hid it from Intellisense.