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
參數
- test
型別:Microsoft.VisualStudio.TestTools.Common.ITestElement
要求逾時的測試物件。
傳回值
型別:System.Int32
指定之測試的逾時。
備註
如果測試物件不指定逾時值,執行將使用[P:Microsoft.VisualStudio.TestTools.Common.TestRunConfiguration.TestTimeout.]
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。