共用方式為


TestRunConfiguration.IsExecutedUnderDebugger 屬性

取得或設定布林值,指出是否已經以偵錯程式遠端執行測試回合。

命名空間:  Microsoft.VisualStudio.TestTools.Common
組件:  Microsoft.VisualStudio.QualityTools.Common (在 Microsoft.VisualStudio.QualityTools.Common.dll 中)

語法

'宣告
Public Property IsExecutedUnderDebugger As Boolean
public bool IsExecutedUnderDebugger { get; set; }
public:
property bool IsExecutedUnderDebugger {
    bool get ();
    void set (bool value);
}
member IsExecutedUnderDebugger : bool with get, set
function get IsExecutedUnderDebugger () : boolean
function set IsExecutedUnderDebugger (value : boolean)

屬性值

型別:System.Boolean
如果已透過偵錯工具執行回合則為 true,否則為 false。

.NET Framework 安全性

請參閱

參考

TestRunConfiguration 類別

Microsoft.VisualStudio.TestTools.Common 命名空間