CodeRemoveEventStatement Constructor (CodeEventReferenceExpression^, CodeExpression^)
.NET Framework (current version)
Initializes a new instance of the CodeRemoveEventStatement class with the specified event and event handler.
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
Available since 1.1
Show: