Düzenle

Aracılığıyla paylaş


CodeRemoveEventStatement Constructors

Definition

Initializes a new instance of the CodeRemoveEventStatement class.

Overloads

CodeRemoveEventStatement()

Initializes a new instance of the CodeRemoveEventStatement class.

CodeRemoveEventStatement(CodeEventReferenceExpression, CodeExpression)

Initializes a new instance of the CodeRemoveEventStatement class with the specified event and event handler.

CodeRemoveEventStatement(CodeExpression, String, CodeExpression)

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

CodeRemoveEventStatement()

Source:
CodeRemoveEventStatement.cs
Source:
CodeRemoveEventStatement.cs
Source:
CodeRemoveEventStatement.cs
Source:
CodeRemoveEventStatement.cs

Initializes a new instance of the CodeRemoveEventStatement class.

public:
 CodeRemoveEventStatement();
public CodeRemoveEventStatement ();
Public Sub New ()

Applies to

CodeRemoveEventStatement(CodeEventReferenceExpression, CodeExpression)

Source:
CodeRemoveEventStatement.cs
Source:
CodeRemoveEventStatement.cs
Source:
CodeRemoveEventStatement.cs
Source:
CodeRemoveEventStatement.cs

Initializes a new instance of the CodeRemoveEventStatement class with the specified event and event handler.

public:
 CodeRemoveEventStatement(System::CodeDom::CodeEventReferenceExpression ^ eventRef, System::CodeDom::CodeExpression ^ listener);
public CodeRemoveEventStatement (System.CodeDom.CodeEventReferenceExpression eventRef, System.CodeDom.CodeExpression listener);
new System.CodeDom.CodeRemoveEventStatement : System.CodeDom.CodeEventReferenceExpression * System.CodeDom.CodeExpression -> System.CodeDom.CodeRemoveEventStatement
Public Sub New (eventRef As CodeEventReferenceExpression, listener As CodeExpression)

Parameters

eventRef
CodeEventReferenceExpression

A CodeEventReferenceExpression that indicates the event to detach the event handler from.

listener
CodeExpression

A CodeExpression that indicates the event handler to remove.

See also

Applies to

CodeRemoveEventStatement(CodeExpression, String, CodeExpression)

Source:
CodeRemoveEventStatement.cs
Source:
CodeRemoveEventStatement.cs
Source:
CodeRemoveEventStatement.cs
Source:
CodeRemoveEventStatement.cs

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

public:
 CodeRemoveEventStatement(System::CodeDom::CodeExpression ^ targetObject, System::String ^ eventName, System::CodeDom::CodeExpression ^ listener);
public CodeRemoveEventStatement (System.CodeDom.CodeExpression targetObject, string eventName, System.CodeDom.CodeExpression listener);
new System.CodeDom.CodeRemoveEventStatement : System.CodeDom.CodeExpression * string * System.CodeDom.CodeExpression -> System.CodeDom.CodeRemoveEventStatement
Public Sub New (targetObject As CodeExpression, eventName As String, listener As CodeExpression)

Parameters

targetObject
CodeExpression

A CodeExpression that indicates the object that contains the event.

eventName
String

The name of the event.

listener
CodeExpression

A CodeExpression that indicates the event handler to remove.

See also

Applies to