Partager via


AddRemoveHandlerStatementSyntax.WithEventExpression(ExpressionSyntax) Method

Definition

Returns a copy of this with the EventExpression property changed to the specified value. Returns this instance if the specified value is the same as the current value.

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

Parameters

eventExpression
ExpressionSyntax

Returns

Applies to