CodeAttachEventStatement Constructor (CodeEventReferenceExpression^, CodeExpression^)

 

Initializes a new instance of the CodeAttachEventStatement class using the specified event and delegate.

Namespace:   System.CodeDom
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
Return to top
Show: