[Serializable] |
CodeAttachEventStatement attachevent1 = new CodeAttachEvent(this, OnPaint, UpdateDisplay);
ctor #1 | Overloaded:.ctor() Default constructor. This constructor is called by derived class constructors to initialize state in this type.Initializes a new instance of the CodeAttachEventStatement class. |
ctor #2 | Overloaded:.ctor(CodeEventReferenceExpression eventRef, CodeExpression listener) Initializes a new instance of the CodeAttachEventStatement class using the specified event reference and listener. |
ctor #3 | Overloaded:.ctor(CodeExpression targetObject, string eventName, CodeExpression listener) Initializes a new instance of the CodeAttachEventStatement class using the specified object containing the event, event name, and listener. |
Event | Read-write Gets or sets the event to attach a listener to. |
LinePragma (inherited from System.CodeDom.CodeStatement) |
Read-write See base class member description: System.CodeDom.CodeStatement.LinePragma Gets or sets the line the statement occurs on. |
Listener | Read-write Gets or sets the new listener to attach to the event. |
UserData (inherited from System.CodeDom.CodeObject) |
Read-only See base class member description: System.CodeDom.CodeObject.UserData Gets or sets the user-definable data for the current object. |
Equals (inherited from System.Object) |
See base class member description: System.Object.Equals Derived from System.Object, the primary base class for all objects. |
GetHashCode (inherited from System.Object) |
See base class member description: System.Object.GetHashCode Derived from System.Object, the primary base class for all objects. |
GetType (inherited from System.Object) |
See base class member description: System.Object.GetType Derived from System.Object, the primary base class for all objects. |
ToString (inherited from System.Object) |
See base class member description: System.Object.ToString Derived from System.Object, the primary base class for all objects. |
Finalize (inherited from System.Object) |
See base class member description: System.Object.Finalize Derived from System.Object, the primary base class for all objects. |
MemberwiseClone (inherited from System.Object) |
See base class member description: System.Object.MemberwiseClone Derived from System.Object, the primary base class for all objects. |
Hierarchy:
public CodeAttachEventStatement(); |
public CodeAttachEventStatement( |
eventRef
listener
public CodeAttachEventStatement( |
targetObject
eventName
listener
public CodeEventReferenceExpression Event {get; set;}
|
public CodeLinePragma LinePragma {get; set;}
|
public CodeExpression Listener {get; set;}
|
public IDictionary UserData {get;}
|
~CodeAttachEventStatement(); |
public virtual int GetHashCode(); |
public Type GetType(); |
protected object MemberwiseClone(); |
public virtual string ToString(); |