共用方式為


TestStepEventArgs.TestStepId 屬性

取得或設定測試步驟的 ID。

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

語法

'宣告
Public Property TestStepId As Integer
    Get
    Private Set
public int TestStepId { get; private set; }
public:
property int TestStepId {
    int get ();
    private: void set (int value);
}
member TestStepId : int with get, private set
function get TestStepId () : int
private function set TestStepId (value : int)

屬性值

型別:System.Int32
傳回測試步驟的 ID。

備註

識別發生資料收集的測試步驟,如果這類步驟並不存在,則會是 0。

.NET Framework 安全性

請參閱

參考

TestStepEventArgs 類別

Microsoft.VisualStudio.TestTools.Execution 命名空間

#ctor(DataCollectionContext, Int32, String, Boolean, Int32, String)