共用方式為


IDataCollectionAwareTestAdapter.DataCollectors 屬性

取得或設定可以針對診斷資料配接器引發事件的 DataCollectorNotifications 物件。

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

語法

'宣告
Property DataCollectors As DataCollectorNotifications
DataCollectorNotifications DataCollectors { get; set; }
property DataCollectorNotifications^ DataCollectors {
    DataCollectorNotifications^ get ();
    void set (DataCollectorNotifications^ value);
}
abstract DataCollectors : DataCollectorNotifications with get, set
function get DataCollectors () : DataCollectorNotifications
function set DataCollectors (value : DataCollectorNotifications)

屬性值

型別:Microsoft.VisualStudio.TestTools.Execution.DataCollectorNotifications
診斷資料配接器 (資料收集器) 通知物件。

備註

如需有關如何實作此屬性的詳細資訊,請參閱 IDataCollectionAwareTestAdapter 的範例。

.NET Framework 安全性

請參閱

參考

IDataCollectionAwareTestAdapter 介面

Microsoft.VisualStudio.TestTools.Execution 命名空間

DataCollectorNotifications