DataConnectionProperties.ICustomTypeDescriptor.GetEvents 方法
擷取指定的元件執行個體的事件。
命名空間: Microsoft.VisualStudio.Data
組件: Microsoft.VisualStudio.Data (在 Microsoft.VisualStudio.Data.dll 中)
語法
'宣告
Private Function GetEvents As EventDescriptorCollection
Implements ICustomTypeDescriptor.GetEvents
EventDescriptorCollection ICustomTypeDescriptor.GetEvents()
private:
virtual EventDescriptorCollection^ GetEvents() sealed = ICustomTypeDescriptor::GetEvents
private abstract GetEvents : unit -> EventDescriptorCollection
private override GetEvents : unit -> EventDescriptorCollection
JScript 不支援明確介面實作。
傳回值
類型:EventDescriptorCollection
傳回表示指定的元件執行個體的 EventDescriptorCollection 物件事件。
實作
ICustomTypeDescriptor.GetEvents
備註
這個方法 GetEvents 提供方法的實作。 如需詳細資訊 .NET Framework 在類別庫中看到 GetEvents 方法。
如果未指定屬性,實作器可傳回 System.ComponentModel.EventDescriptorCollection.Empty 執行個體。 這個方法應該不會傳回 nullnull 參考 (即 Visual Basic 中的 Nothing)。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。