TestSpecList.GetEvents 方法 (array<Attribute[])
取得包含事件與這些測試和符合指定之屬性的 EventDescriptorCollection 物件。
命名空間: Microsoft.TeamFoundation.Build.Workflow.Activities
組件: Microsoft.TeamFoundation.Build.Workflow (在 Microsoft.TeamFoundation.Build.Workflow.dll 中)
語法
'宣告
Public Function GetEvents ( _
attributes As Attribute() _
) As EventDescriptorCollection
public EventDescriptorCollection GetEvents(
Attribute[] attributes
)
參數
- attributes
類型:array<System.Attribute[]
符合事件的屬性。
傳回值
類型:System.ComponentModel.EventDescriptorCollection
包含事件資料的 EventDescriptorCollection 物件與這些測試並符合指定的屬性。
實作
ICustomTypeDescriptor.GetEvents(array<Attribute[])
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。