共用方式為


TestElement.Priority 屬性

取得或設定這個測試項目的相對優先權。

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

語法

'宣告
<UserVisiblePropertyAttribute("{8E14F374-EA8C-4c77-843B-B4075899F238}")> _
<GroupingPropertyAttribute> _
<PropertyWindowAttribute(PropertyConverterType.PriorityConverter)> _
Public Property Priority As Integer
[UserVisiblePropertyAttribute("{8E14F374-EA8C-4c77-843B-B4075899F238}")]
[GroupingPropertyAttribute]
[PropertyWindowAttribute(PropertyConverterType.PriorityConverter)]
public int Priority { get; set; }
[UserVisiblePropertyAttribute(L"{8E14F374-EA8C-4c77-843B-B4075899F238}")]
[GroupingPropertyAttribute]
[PropertyWindowAttribute(PropertyConverterType::PriorityConverter)]
public:
virtual property int Priority {
    int get () sealed;
    void set (int value) sealed;
}
[<UserVisiblePropertyAttribute("{8E14F374-EA8C-4c77-843B-B4075899F238}")>]
[<GroupingPropertyAttribute>]
[<PropertyWindowAttribute(PropertyConverterType.PriorityConverter)>]
abstract Priority : int with get, set
[<UserVisiblePropertyAttribute("{8E14F374-EA8C-4c77-843B-B4075899F238}")>]
[<GroupingPropertyAttribute>]
[<PropertyWindowAttribute(PropertyConverterType.PriorityConverter)>]
override Priority : int with get, set
final function get Priority () : int
final function set Priority (value : int)

屬性值

型別:System.Int32
這個測試項目的相對優先權。

實作

ITestElement.Priority

.NET Framework 安全性

請參閱

參考

TestElement 類別

Microsoft.VisualStudio.TestTools.Common 命名空間