IMemberCreationService.CreateEvent Metod

Definition

Skapar en händelse i den angivna klassen med hjälp av det angivna händelsenamnet, händelsetypen och attributen.

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)

Parametrar

className
String

En sträng som innehåller klassnamnet som händelsen ska läggas till i.

eventName
String

En sträng som definierar namnet på händelsen.

eventType
Type

Den Type tilldelade händelsen.

attributes
AttributeInfo[]

En AttributeInfo matris som innehåller information om alla attribut som ska tilldelas till händelsen.

emitDependencyProperty
Boolean

trueför att generera eventuella beroendeegenskaper som är associerade med händelsen; annars . false

Gäller för