SyntaxGenerator.AddEventHandler(SyntaxNode, SyntaxNode) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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