SyntaxFactory.YieldStatement Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
YieldStatement(ExpressionSyntax) |
Represent a Yield statement. |
YieldStatement(SyntaxToken, ExpressionSyntax) |
Represent a Yield statement. |
YieldStatement(ExpressionSyntax)
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
Represent a Yield statement.
public:
static Microsoft::CodeAnalysis::VisualBasic::Syntax::YieldStatementSyntax ^ YieldStatement(Microsoft::CodeAnalysis::VisualBasic::Syntax::ExpressionSyntax ^ expression);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.YieldStatementSyntax YieldStatement (Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax expression);
static member YieldStatement : Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.YieldStatementSyntax
Public Shared Function YieldStatement (expression As ExpressionSyntax) As YieldStatementSyntax
Parameters
- expression
- ExpressionSyntax
The expression whose value is being yielded.
Returns
Applies to
YieldStatement(SyntaxToken, ExpressionSyntax)
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
Represent a Yield statement.
public:
static Microsoft::CodeAnalysis::VisualBasic::Syntax::YieldStatementSyntax ^ YieldStatement(Microsoft::CodeAnalysis::SyntaxToken yieldKeyword, Microsoft::CodeAnalysis::VisualBasic::Syntax::ExpressionSyntax ^ expression);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.YieldStatementSyntax YieldStatement (Microsoft.CodeAnalysis.SyntaxToken yieldKeyword, Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax expression);
static member YieldStatement : Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.YieldStatementSyntax
Public Shared Function YieldStatement (yieldKeyword As SyntaxToken, expression As ExpressionSyntax) As YieldStatementSyntax
Parameters
- yieldKeyword
- SyntaxToken
The "Yield" keyword.
- expression
- ExpressionSyntax
The expression whose value is being yielded.
Returns
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.