AddRemoveHandlerStatementSyntax.WithEventExpression(ExpressionSyntax) 方法

定义

返回此副本,其中 EventExpression 属性已更改为指定值。 如果指定的值与当前值相同,则返回此实例。

public:
 Microsoft::CodeAnalysis::VisualBasic::Syntax::AddRemoveHandlerStatementSyntax ^ WithEventExpression(Microsoft::CodeAnalysis::VisualBasic::Syntax::ExpressionSyntax ^ eventExpression);
public Microsoft.CodeAnalysis.VisualBasic.Syntax.AddRemoveHandlerStatementSyntax WithEventExpression (Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax eventExpression);
member this.WithEventExpression : Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.AddRemoveHandlerStatementSyntax
Public Function WithEventExpression (eventExpression As ExpressionSyntax) As AddRemoveHandlerStatementSyntax

参数

eventExpression
ExpressionSyntax

返回

适用于