다음을 통해 공유


ForOrForEachStatementSyntax.WithForKeyword(SyntaxToken) Method

Definition

Returns a copy of this with the ForKeyword 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::ForOrForEachStatementSyntax ^ WithForKeyword(Microsoft::CodeAnalysis::SyntaxToken forKeyword);
public Microsoft.CodeAnalysis.VisualBasic.Syntax.ForOrForEachStatementSyntax WithForKeyword (Microsoft.CodeAnalysis.SyntaxToken forKeyword);
member this.WithForKeyword : Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.VisualBasic.Syntax.ForOrForEachStatementSyntax
Public Function WithForKeyword (forKeyword As SyntaxToken) As ForOrForEachStatementSyntax

Parameters

forKeyword
SyntaxToken

Returns

Applies to