Partilhar via


YieldStatementSyntax.WithYieldKeyword(SyntaxToken) Method

Definition

Returns a copy of this with the YieldKeyword 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::YieldStatementSyntax ^ WithYieldKeyword(Microsoft::CodeAnalysis::SyntaxToken yieldKeyword);
public Microsoft.CodeAnalysis.VisualBasic.Syntax.YieldStatementSyntax WithYieldKeyword (Microsoft.CodeAnalysis.SyntaxToken yieldKeyword);
member this.WithYieldKeyword : Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.VisualBasic.Syntax.YieldStatementSyntax
Public Function WithYieldKeyword (yieldKeyword As SyntaxToken) As YieldStatementSyntax

Parameters

yieldKeyword
SyntaxToken

Returns

Applies to