LockStatementSyntax.WithExpression(ExpressionSyntax) 方法

定义

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

参数

expression
ExpressionSyntax

返回

适用于