CodeRemoveEventStatement Constructor (CodeEventReferenceExpression^, CodeExpression^)

 

Initializes a new instance of the CodeRemoveEventStatement class with the specified event and event handler.

Namespace:   System.CodeDom
Assembly:  System (in System.dll)

public:
CodeRemoveEventStatement(
	CodeEventReferenceExpression^ eventRef,
	CodeExpression^ listener
)

Parameters

eventRef
Type: System.CodeDom::CodeEventReferenceExpression^

A CodeEventReferenceExpression that indicates the event to detach the event handler from.

listener
Type: System.CodeDom::CodeExpression^

A CodeExpression that indicates the event handler to remove.

.NET Framework
Available since 1.1
Return to top
Show: