共用方式為


RunResultAndStatistics.Outcome 屬性

取得或設定相關聯測試回合的結果。

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

語法

'宣告
<VisiblePropertyAttribute> _
Public Property Outcome As TestOutcome
[VisiblePropertyAttribute]
public TestOutcome Outcome { get; set; }
[VisiblePropertyAttribute]
public:
property TestOutcome Outcome {
    TestOutcome get ();
    void set (TestOutcome value);
}
[<VisiblePropertyAttribute>]
member Outcome : TestOutcome with get, set
function get Outcome () : TestOutcome
function set Outcome (value : TestOutcome)

屬性值

型別:Microsoft.VisualStudio.TestTools.Common.TestOutcome
相關聯測試回合的結果。

備註

這個屬性的當地語系化文字版本會在 Visual Studio Test Professional 的使用者介面中顯示。 如需詳細資訊,請參閱 OutcomeText 屬性 (Property)。

.NET Framework 安全性

請參閱

參考

RunResultAndStatistics 類別

Microsoft.VisualStudio.TestTools.Common 命名空間

TestOutcome

OutcomeText