OnErrorGoToStatementSyntax.WithOnKeyword(SyntaxToken) Method

Definition

Returns a copy of this with the OnKeyword 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::OnErrorGoToStatementSyntax ^ WithOnKeyword(Microsoft::CodeAnalysis::SyntaxToken onKeyword);
public Microsoft.CodeAnalysis.VisualBasic.Syntax.OnErrorGoToStatementSyntax WithOnKeyword (Microsoft.CodeAnalysis.SyntaxToken onKeyword);
member this.WithOnKeyword : Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.VisualBasic.Syntax.OnErrorGoToStatementSyntax
Public Function WithOnKeyword (onKeyword As SyntaxToken) As OnErrorGoToStatementSyntax

Parameters

onKeyword
SyntaxToken

Returns

Applies to