共用方式為


MetadataReaderExtensions.GetTypesWithEvents(MetadataReader) 方法

定義

列舉定義一或多個事件的類型。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IEnumerable<System::Reflection::Metadata::TypeDefinitionHandle> ^ GetTypesWithEvents(System::Reflection::Metadata::MetadataReader ^ reader);
public static System.Collections.Generic.IEnumerable<System.Reflection.Metadata.TypeDefinitionHandle> GetTypesWithEvents (this System.Reflection.Metadata.MetadataReader reader);
static member GetTypesWithEvents : System.Reflection.Metadata.MetadataReader -> seq<System.Reflection.Metadata.TypeDefinitionHandle>
<Extension()>
Public Iterator Function GetTypesWithEvents (reader As MetadataReader) As IEnumerable(Of TypeDefinitionHandle)
<Extension()>
Public Function GetTypesWithEvents (reader As MetadataReader) As IEnumerable(Of TypeDefinitionHandle)

參數

傳回

產生的序列會完全對應至 EventMap 資料表中項目,即第 N 個傳回的 TypeDefinitionHandle 會儲存在 EventMap 的第 N 列中。

適用於