次の方法で共有


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