LoginSignup
0
0

More than 5 years have passed since last update.

Visual Studio / WPF > IDE > Dispatcher > System.Windows.Threadingに定義 / VerifyAccess()のIntelliSense入力候補は表示されない > "advanced scenarios"

Last updated at Posted at 2017-04-27
動作環境
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.

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0