共用方式為


UsingStatementSyntax.WithExpression(ExpressionSyntax) Method

Definition

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

Parameters

expression
ExpressionSyntax

Returns

Applies to