System.CodeDom.CodeAttachEventStatement Class

Represents a statement that attaches an event-handler delegate to an event.

See Also: CodeAttachEventStatement Members

Syntax

[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.AutoDispatch)]
[System.Runtime.InteropServices.ComVisible(true)]
public class CodeAttachEventStatement : CodeStatement

Remarks

System.CodeDom.CodeAttachEventStatement can be used to represent a statement that adds an event-handler delegate for an event. The CodeAttachEventStatement.Event property indicates the event to attach the event handler to. The CodeAttachEventStatement.Listener property indicates the event handler to attach.

Requirements

Namespace: System.CodeDom
Assembly: System (in System.dll)
Assembly Versions: 1.0.3300.0, 1.0.5000.0, 2.0.0.0, 4.0.0.0