Share via


SingleLineLambdaExpressionSyntax.WithBody(VisualBasicSyntaxNode) Method

Definition

Returns a copy of this with the Body 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::SingleLineLambdaExpressionSyntax ^ WithBody(Microsoft::CodeAnalysis::VisualBasic::VisualBasicSyntaxNode ^ body);
public Microsoft.CodeAnalysis.VisualBasic.Syntax.SingleLineLambdaExpressionSyntax WithBody (Microsoft.CodeAnalysis.VisualBasic.VisualBasicSyntaxNode body);
member this.WithBody : Microsoft.CodeAnalysis.VisualBasic.VisualBasicSyntaxNode -> Microsoft.CodeAnalysis.VisualBasic.Syntax.SingleLineLambdaExpressionSyntax
Public Function WithBody (body As VisualBasicSyntaxNode) As SingleLineLambdaExpressionSyntax

Parameters

Returns

Applies to