UsingStatementSyntax.WithExpression(ExpressionSyntax) 方法

定义

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

参数

expression
ExpressionSyntax

返回

适用于