TestRunConfiguration.GetTestElementTimeout 方法

傳回指定測試的指定逾時。

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

語法

'宣告
Public Function GetTestElementTimeout ( _
    test As ITestElement _
) As Integer
public int GetTestElementTimeout(
    ITestElement test
)
public:
int GetTestElementTimeout(
    ITestElement^ test
)
member GetTestElementTimeout : 
        test:ITestElement -> int 
public function GetTestElementTimeout(
    test : ITestElement
) : int

參數

傳回值

型別:System.Int32
指定之測試的逾時。

備註

如果測試物件不指定逾時值,執行將使用[P:Microsoft.VisualStudio.TestTools.Common.TestRunConfiguration.TestTimeout.]

.NET Framework 安全性

請參閱

參考

TestRunConfiguration 類別

Microsoft.VisualStudio.TestTools.Common 命名空間

ITestElement