MetadataBuilder.AddEvent(EventAttributes, StringHandle, EntityHandle) Método
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Adiciona uma definição de evento.
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
Parâmetros
- attributes
- EventAttributes
Os atributos do evento.
- name
- StringHandle
O nome do evento.
- type
- EntityHandle
O tipo do evento: um TypeDefinitionHandle, TypeReferenceHandle, ou TypeSpecificationHandle.
Devoluções
Um handler para a definição de evento adicional.
Exceções
type não tem o tipo de pega esperado.