IMemberCreationService.CreateEvent Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
- 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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.