Export (0) Print
Expand All

CodeEventReferenceExpression Constructor (CodeExpression, String)

Initializes a new instance of the CodeEventReferenceExpression class using the specified target object and event name.

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

public CodeEventReferenceExpression(
	CodeExpression targetObject,
	string eventName
)

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 to reference.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft