共用方式為


TestRunConfiguration.IsCodeCoverageEnabled 屬性

取得或設定布林值,這個值表示此測試回合的程式碼涵蓋範圍集合是否啟用。

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

語法

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

屬性值

型別:System.Boolean
如果程式碼涵蓋範圍收集已啟用則為 true,否則為 false。

.NET Framework 安全性

請參閱

參考

TestRunConfiguration 類別

Microsoft.VisualStudio.TestTools.Common 命名空間