Share via


MetadataBuilder.AddEvent(EventAttributes, StringHandle, EntityHandle) メソッド

定義

イベント定義を追加します。

public:
 System::Reflection::Metadata::EventDefinitionHandle AddEvent(System::Reflection::EventAttributes attributes, System::Reflection::Metadata::StringHandle name, System::Reflection::Metadata::EntityHandle type);
public System.Reflection.Metadata.EventDefinitionHandle AddEvent (System.Reflection.EventAttributes attributes, System.Reflection.Metadata.StringHandle name, System.Reflection.Metadata.EntityHandle type);
member this.AddEvent : System.Reflection.EventAttributes * System.Reflection.Metadata.StringHandle * System.Reflection.Metadata.EntityHandle -> System.Reflection.Metadata.EventDefinitionHandle
Public Function AddEvent (attributes As EventAttributes, name As StringHandle, type As EntityHandle) As EventDefinitionHandle

パラメーター

attributes
EventAttributes

イベント属性。

name
StringHandle

イベントの名前です。

type
EntityHandle

イベントの種類: TypeDefinitionHandleTypeReferenceHandle、または TypeSpecificationHandle

戻り値

追加されたイベント定義のハンドル。

例外

type が、必要なハンドルの型ではありません。

適用対象