共用方式為


TestElement.Timeout 屬性

取得或設定這個測試項目執行逾時之前的秒數。

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

語法

'宣告
<PropertyWindowAttribute(PropertyEditorType.NoEditor, PropertyConverterType.TimeoutConverter)> _
<UserVisiblePropertyAttribute("{8E14F374-EA8C-4c77-843B-B4075899F239}")> _
Public Overridable Property Timeout As Integer
[PropertyWindowAttribute(PropertyEditorType.NoEditor, PropertyConverterType.TimeoutConverter)]
[UserVisiblePropertyAttribute("{8E14F374-EA8C-4c77-843B-B4075899F239}")]
public virtual int Timeout { get; set; }
[PropertyWindowAttribute(PropertyEditorType::NoEditor, PropertyConverterType::TimeoutConverter)]
[UserVisiblePropertyAttribute(L"{8E14F374-EA8C-4c77-843B-B4075899F239}")]
public:
virtual property int Timeout {
    int get ();
    void set (int value);
}
[<PropertyWindowAttribute(PropertyEditorType.NoEditor, PropertyConverterType.TimeoutConverter)>]
[<UserVisiblePropertyAttribute("{8E14F374-EA8C-4c77-843B-B4075899F239}")>]
abstract Timeout : int with get, set
[<PropertyWindowAttribute(PropertyEditorType.NoEditor, PropertyConverterType.TimeoutConverter)>]
[<UserVisiblePropertyAttribute("{8E14F374-EA8C-4c77-843B-B4075899F239}")>]
override Timeout : int with get, set
function get Timeout () : int
function set Timeout (value : int)

屬性值

型別:System.Int32
這個測試項目執行逾時之前的秒數。

實作

ITestElement.Timeout

.NET Framework 安全性

請參閱

參考

TestElement 類別

Microsoft.VisualStudio.TestTools.Common 命名空間