Partager via


OnErrorResumeNextStatementSyntax.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::OnErrorResumeNextStatementSyntax ^ WithOnKeyword(Microsoft::CodeAnalysis::SyntaxToken onKeyword);
public Microsoft.CodeAnalysis.VisualBasic.Syntax.OnErrorResumeNextStatementSyntax WithOnKeyword (Microsoft.CodeAnalysis.SyntaxToken onKeyword);
member this.WithOnKeyword : Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.VisualBasic.Syntax.OnErrorResumeNextStatementSyntax
Public Function WithOnKeyword (onKeyword As SyntaxToken) As OnErrorResumeNextStatementSyntax

Parameters

onKeyword
SyntaxToken

Returns

Applies to