CodeAttachEventStatement Constructor (CodeEventReferenceExpression^, CodeExpression^)
.NET Framework (current version)
Initializes a new instance of the CodeAttachEventStatement class using the specified event and delegate.
Assembly: System (in System.dll)
public:
CodeAttachEventStatement(
CodeEventReferenceExpression^ eventRef,
CodeExpression^ listener
)
Parameters
- eventRef
-
Type:
System.CodeDom::CodeEventReferenceExpression^
A CodeEventReferenceExpression that indicates the event to attach an event handler to.
- listener
-
Type:
System.CodeDom::CodeExpression^
A CodeExpression that indicates the new event handler.
.NET Framework
Available since 1.1
Available since 1.1
Show: