IMemberCreationService.CreateEvent Método

Definición

Crea un evento en la clase especificada mediante el nombre de evento, el tipo de evento y los atributos especificados.

public:
 void CreateEvent(System::String ^ className, System::String ^ eventName, Type ^ eventType, cli::array <System::Workflow::ComponentModel::Compiler::AttributeInfo ^> ^ attributes, bool emitDependencyProperty);
public void CreateEvent(string className, string eventName, Type eventType, System.Workflow.ComponentModel.Compiler.AttributeInfo[] attributes, bool emitDependencyProperty);
abstract member CreateEvent : string * string * Type * System.Workflow.ComponentModel.Compiler.AttributeInfo[] * bool -> unit
Public Sub CreateEvent (className As String, eventName As String, eventType As Type, attributes As AttributeInfo(), emitDependencyProperty As Boolean)

Parámetros

className
String

Cadena que contiene el nombre de clase al que agregar el evento.

eventName
String

Cadena que define el nombre del evento.

eventType
Type

Type asignado al evento .

attributes
AttributeInfo[]

Matriz AttributeInfo que contiene información sobre todos los atributos que se van a asignar al evento.

emitDependencyProperty
Boolean

true para emitir las propiedades de dependencia asociadas al evento; de lo contrario, false.

Se aplica a