ExpressionStatementSyntax.WithExpression(ExpressionSyntax) 方法

定义

public:
 Microsoft::CodeAnalysis::CSharp::Syntax::ExpressionStatementSyntax ^ WithExpression(Microsoft::CodeAnalysis::CSharp::Syntax::ExpressionSyntax ^ expression);
public Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionStatementSyntax WithExpression (Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax expression);
member this.WithExpression : Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionStatementSyntax
Public Function WithExpression (expression As ExpressionSyntax) As ExpressionStatementSyntax

参数

expression
ExpressionSyntax

返回

适用于