Debugger.NotifyOfCrossThreadDependency 方法

定義

通知偵錯工具即將執行的路徑涉及跨執行緒相依性。

public:
 static void NotifyOfCrossThreadDependency();
public static void NotifyOfCrossThreadDependency ();
[System.Runtime.InteropServices.ComVisible(false)]
public static void NotifyOfCrossThreadDependency ();
static member NotifyOfCrossThreadDependency : unit -> unit
[<System.Runtime.InteropServices.ComVisible(false)>]
static member NotifyOfCrossThreadDependency : unit -> unit
Public Shared Sub NotifyOfCrossThreadDependency ()
屬性

備註

調試程式必須特別啟用他們想要接收的回呼。 想要接收跨線程相依性回呼的調試程序必須呼叫 ICorDebugProcess3::SetEnableCustomNotification 方法。

已選取 NotifyOfCrossThreadDependency 的調試程式可以在通知時採取適當的動作。 例如,執行函式評估通常需要凍結所有線程,但執行評估的線程除外。 如果函式評估需要在多個線程上執行,如遠端案例中可能發生的情況,評估將會封鎖。 通知 NotifyOfCrossThreadDependency 會通知調試程式必須釋放線程或中止函式評估。 這個方法傳回之後,通知會受到收集。

適用於