IMemberCreationService.CreateEvent Method

Definition

Creates an event on the specified class by using the specified event name, event type and attributes.

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)

Parameters

className
String

A string that contains the class name to add the event to.

eventName
String

A string that defines the name of the event.

eventType
Type

The Type assigned to the event.

attributes
AttributeInfo[]

An AttributeInfo array that contains information on all attributes to assign to the event.

emitDependencyProperty
Boolean

true to emit any dependency properties associated with the event; otherwise, false.

Applies to