SyntaxGenerator.AddEventHandler(SyntaxNode, SyntaxNode) Method

Definition

Creates a statement that adds the given handler to the given event.

public:
 abstract Microsoft::CodeAnalysis::SyntaxNode ^ AddEventHandler(Microsoft::CodeAnalysis::SyntaxNode ^ event, Microsoft::CodeAnalysis::SyntaxNode ^ handler);
public abstract Microsoft.CodeAnalysis.SyntaxNode AddEventHandler (Microsoft.CodeAnalysis.SyntaxNode event, Microsoft.CodeAnalysis.SyntaxNode handler);
abstract member AddEventHandler : Microsoft.CodeAnalysis.SyntaxNode * Microsoft.CodeAnalysis.SyntaxNode -> Microsoft.CodeAnalysis.SyntaxNode
Public MustOverride Function AddEventHandler (event As SyntaxNode, handler As SyntaxNode) As SyntaxNode

Parameters

event
SyntaxNode
handler
SyntaxNode

Returns

Applies to