TestCaseEventArgs 建構函式 (DataCollectionContext, ITestElement, TcmInformation)
使用提供的資訊,初始化 TestCaseEventArgs 類別的新執行個體。
命名空間: Microsoft.VisualStudio.TestTools.Execution
組件: Microsoft.VisualStudio.QualityTools.ExecutionCommon (在 Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll 中)
語法
'宣告
Protected Sub New ( _
context As DataCollectionContext, _
testElement As ITestElement, _
tcmInformation As TcmInformation _
)
protected TestCaseEventArgs(
DataCollectionContext context,
ITestElement testElement,
TcmInformation tcmInformation
)
protected:
TestCaseEventArgs(
DataCollectionContext^ context,
ITestElement^ testElement,
TcmInformation^ tcmInformation
)
new :
context:DataCollectionContext *
testElement:ITestElement *
tcmInformation:TcmInformation -> TestCaseEventArgs
protected function TestCaseEventArgs(
context : DataCollectionContext,
testElement : ITestElement,
tcmInformation : TcmInformation
)
參數
- context
型別:Microsoft.VisualStudio.TestTools.Execution.DataCollectionContext
DataCollectionContext 物件。
- testElement
型別:Microsoft.VisualStudio.TestTools.Common.ITestElement
由 ITestElement 物件表示的目前測試項目。
- tcmInformation
型別:Microsoft.VisualStudio.TestTools.Common.TcmInformation
TcmInformation 物件,用來從測試管理員取得測試的進一步資料。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。