CodeRemoveEventStatement Constructor (CodeExpression^, String^, CodeExpression^)

 

Initializes a new instance of the CodeRemoveEventStatement class using the specified target object, event name, and event handler.

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

public:
CodeRemoveEventStatement(
	CodeExpression^ targetObject,
	String^ eventName,
	CodeExpression^ listener
)

Parameters

targetObject
Type: System.CodeDom::CodeExpression^

A CodeExpression that indicates the object that contains the event.

eventName
Type: System::String^

The name of the event.

listener
Type: System.CodeDom::CodeExpression^

A CodeExpression that indicates the event handler to remove.

.NET Framework
Available since 1.1
Return to top
Show: