Compartir a través de


SyntaxFactory.AddRemoveHandlerStatement Método

Definición

Sobrecargas

AddRemoveHandlerStatement(SyntaxKind, SyntaxToken, ExpressionSyntax, SyntaxToken, ExpressionSyntax)

Representa una instrucción AddHandler o RemoveHandler. La propiedad Kind determina cuál.

AddRemoveHandlerStatement(SyntaxKind, SyntaxToken, ExpressionSyntax, ExpressionSyntax)

Representa una instrucción AddHandler o RemoveHandler. La propiedad Kind determina cuál.

AddRemoveHandlerStatement(SyntaxKind, SyntaxToken, ExpressionSyntax, SyntaxToken, ExpressionSyntax)

Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb

Representa una instrucción AddHandler o RemoveHandler. La propiedad Kind determina cuál.

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::AddRemoveHandlerStatementSyntax ^ AddRemoveHandlerStatement(Microsoft::CodeAnalysis::VisualBasic::SyntaxKind kind, Microsoft::CodeAnalysis::SyntaxToken addHandlerOrRemoveHandlerKeyword, Microsoft::CodeAnalysis::VisualBasic::Syntax::ExpressionSyntax ^ eventExpression, Microsoft::CodeAnalysis::SyntaxToken commaToken, Microsoft::CodeAnalysis::VisualBasic::Syntax::ExpressionSyntax ^ delegateExpression);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.AddRemoveHandlerStatementSyntax AddRemoveHandlerStatement (Microsoft.CodeAnalysis.VisualBasic.SyntaxKind kind, Microsoft.CodeAnalysis.SyntaxToken addHandlerOrRemoveHandlerKeyword, Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax eventExpression, Microsoft.CodeAnalysis.SyntaxToken commaToken, Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax delegateExpression);
static member AddRemoveHandlerStatement : Microsoft.CodeAnalysis.VisualBasic.SyntaxKind * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.AddRemoveHandlerStatementSyntax
Public Shared Function AddRemoveHandlerStatement (kind As SyntaxKind, addHandlerOrRemoveHandlerKeyword As SyntaxToken, eventExpression As ExpressionSyntax, commaToken As SyntaxToken, delegateExpression As ExpressionSyntax) As AddRemoveHandlerStatementSyntax

Parámetros

kind
SyntaxKind

que SyntaxKind representa el tipo específico de AddRemoveHandlerStatementSyntax. Uno de AddHandlerStatement, RemoveHandlerStatement.

addHandlerOrRemoveHandlerKeyword
SyntaxToken

Palabra clave "AddHandler" o "RemoveHandler".

eventExpression
ExpressionSyntax

Evento al que se accede.

commaToken
SyntaxToken

Token ",".

delegateExpression
ExpressionSyntax

Delegado que se va a agregar o quitar.

Devoluciones

Se aplica a

AddRemoveHandlerStatement(SyntaxKind, SyntaxToken, ExpressionSyntax, ExpressionSyntax)

Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb

Representa una instrucción AddHandler o RemoveHandler. La propiedad Kind determina cuál.

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::AddRemoveHandlerStatementSyntax ^ AddRemoveHandlerStatement(Microsoft::CodeAnalysis::VisualBasic::SyntaxKind kind, Microsoft::CodeAnalysis::SyntaxToken addHandlerOrRemoveHandlerKeyword, Microsoft::CodeAnalysis::VisualBasic::Syntax::ExpressionSyntax ^ eventExpression, Microsoft::CodeAnalysis::VisualBasic::Syntax::ExpressionSyntax ^ delegateExpression);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.AddRemoveHandlerStatementSyntax AddRemoveHandlerStatement (Microsoft.CodeAnalysis.VisualBasic.SyntaxKind kind, Microsoft.CodeAnalysis.SyntaxToken addHandlerOrRemoveHandlerKeyword, Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax eventExpression, Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax delegateExpression);
static member AddRemoveHandlerStatement : Microsoft.CodeAnalysis.VisualBasic.SyntaxKind * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax * Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.AddRemoveHandlerStatementSyntax
Public Shared Function AddRemoveHandlerStatement (kind As SyntaxKind, addHandlerOrRemoveHandlerKeyword As SyntaxToken, eventExpression As ExpressionSyntax, delegateExpression As ExpressionSyntax) As AddRemoveHandlerStatementSyntax

Parámetros

kind
SyntaxKind

que SyntaxKind representa el tipo específico de AddRemoveHandlerStatementSyntax. Uno de AddHandlerStatement, RemoveHandlerStatement.

addHandlerOrRemoveHandlerKeyword
SyntaxToken

Palabra clave "AddHandler" o "RemoveHandler".

eventExpression
ExpressionSyntax

Evento al que se accede.

delegateExpression
ExpressionSyntax

Delegado que se va a agregar o quitar.

Devoluciones

Se aplica a