共用方式為


TestElement.TestCategories 屬性

取得使用者介面中由使用者指派給這個測試項目之測試分類項目的集合。

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

語法

'宣告
<UserVisiblePropertyAttribute("{2C4323CE-250D-448b-844A-FB570477F324}")> _
<PropertyWindowAttribute(PropertyEditorType.TestCategoryPicker, PropertyConverterType.TestCategoryConverter)> _
Public Property TestCategories As TestCategoryItemCollection
[UserVisiblePropertyAttribute("{2C4323CE-250D-448b-844A-FB570477F324}")]
[PropertyWindowAttribute(PropertyEditorType.TestCategoryPicker, PropertyConverterType.TestCategoryConverter)]
public TestCategoryItemCollection TestCategories { get; set; }
[UserVisiblePropertyAttribute(L"{2C4323CE-250D-448b-844A-FB570477F324}")]
[PropertyWindowAttribute(PropertyEditorType::TestCategoryPicker, PropertyConverterType::TestCategoryConverter)]
public:
virtual property TestCategoryItemCollection^ TestCategories {
    TestCategoryItemCollection^ get () sealed;
    void set (TestCategoryItemCollection^ value) sealed;
}
[<UserVisiblePropertyAttribute("{2C4323CE-250D-448b-844A-FB570477F324}")>]
[<PropertyWindowAttribute(PropertyEditorType.TestCategoryPicker, PropertyConverterType.TestCategoryConverter)>]
abstract TestCategories : TestCategoryItemCollection with get, set
[<UserVisiblePropertyAttribute("{2C4323CE-250D-448b-844A-FB570477F324}")>]
[<PropertyWindowAttribute(PropertyEditorType.TestCategoryPicker, PropertyConverterType.TestCategoryConverter)>]
override TestCategories : TestCategoryItemCollection with get, set
final function get TestCategories () : TestCategoryItemCollection
final function set TestCategories (value : TestCategoryItemCollection)

屬性值

型別:Microsoft.VisualStudio.TestTools.Common.TestCategoryItemCollection
測試分類項目的集合。

實作

ITestElement.TestCategories

.NET Framework 安全性

請參閱

參考

TestElement 類別

Microsoft.VisualStudio.TestTools.Common 命名空間

TestCategoryItem

TestCategoryItemCollection