Share via


AddRemoveHandlerStatementSyntax.WithAddHandlerOrRemoveHandlerKeyword Method

Definition

Returns a copy of this with the AddHandlerOrRemoveHandlerKeyword property changed to the specified value. Returns this instance if the specified value is the same as the current value.

public:
 Microsoft::CodeAnalysis::VisualBasic::Syntax::AddRemoveHandlerStatementSyntax ^ WithAddHandlerOrRemoveHandlerKeyword(Microsoft::CodeAnalysis::SyntaxToken addHandlerOrRemoveHandlerKeyword);
public Microsoft.CodeAnalysis.VisualBasic.Syntax.AddRemoveHandlerStatementSyntax WithAddHandlerOrRemoveHandlerKeyword (Microsoft.CodeAnalysis.SyntaxToken addHandlerOrRemoveHandlerKeyword);
member this.WithAddHandlerOrRemoveHandlerKeyword : Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.VisualBasic.Syntax.AddRemoveHandlerStatementSyntax
Public Function WithAddHandlerOrRemoveHandlerKeyword (addHandlerOrRemoveHandlerKeyword As SyntaxToken) As AddRemoveHandlerStatementSyntax

Parameters

addHandlerOrRemoveHandlerKeyword
SyntaxToken

Returns

Applies to