TestOutcomeHelper.IsWarning 方法
這個 API 支援 .NET Framework 基礎結構,但您不可以直接在程式碼中使用它。
傳回值,這個值表示結果是否為警告。
命名空間: Microsoft.VisualStudio.TestTools.Common
組件: Microsoft.VisualStudio.QualityTools.Common (在 Microsoft.VisualStudio.QualityTools.Common.dll 中)
語法
'宣告
Public Shared Function IsWarning ( _
outcome As TestOutcome _
) As Boolean
public static bool IsWarning(
TestOutcome outcome
)
public:
static bool IsWarning(
TestOutcome outcome
)
static member IsWarning :
outcome:TestOutcome -> bool
public static function IsWarning(
outcome : TestOutcome
) : boolean
參數
- outcome
型別:Microsoft.VisualStudio.TestTools.Common.TestOutcome
TestOutcome 物件。
傳回值
型別:System.Boolean
如果結果表示測試結果是警告,則為 true,否則為 false。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。