TestAndCategoryPair.ToTestId 方法
這個 API 支援 .NET Framework 基礎結構,但您不可以直接在程式碼中使用它。
使用提供的 TestAndCategoryPair 物件,傳回 TestId 物件。
命名空間: Microsoft.VisualStudio.TestTools.Common
組件: Microsoft.VisualStudio.QualityTools.Common (在 Microsoft.VisualStudio.QualityTools.Common.dll 中)
語法
'宣告
Public Shared Function ToTestId ( _
pair As TestAndCategoryPair _
) As TestId
public static TestId ToTestId(
TestAndCategoryPair pair
)
public:
static TestId^ ToTestId(
TestAndCategoryPair^ pair
)
static member ToTestId :
pair:TestAndCategoryPair -> TestId
public static function ToTestId(
pair : TestAndCategoryPair
) : TestId
參數
傳回值
型別:Microsoft.VisualStudio.TestTools.Common.TestId
測試 ID 物件。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。