共用方式為


TestAndCategoryPair.ToTestListCategoryId 方法

這個 API 支援 .NET Framework 基礎結構,但您不可以直接在程式碼中使用它。

使用提供的 TestAndCategoryPair 物件,傳回 TestListCategoryId 物件。

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

語法

'宣告
Public Shared Function ToTestListCategoryId ( _
    pair As TestAndCategoryPair _
) As TestListCategoryId
public static TestListCategoryId ToTestListCategoryId(
    TestAndCategoryPair pair
)
public:
static TestListCategoryId^ ToTestListCategoryId(
    TestAndCategoryPair^ pair
)
static member ToTestListCategoryId : 
        pair:TestAndCategoryPair -> TestListCategoryId 
public static function ToTestListCategoryId(
    pair : TestAndCategoryPair
) : TestListCategoryId

參數

傳回值

型別:Microsoft.VisualStudio.TestTools.Common.TestListCategoryId
測試清單分類 ID 物件。

.NET Framework 安全性

請參閱

參考

TestAndCategoryPair 類別

Microsoft.VisualStudio.TestTools.Common 命名空間

TestListCategoryId