Partager via


HandlesClauseSyntax.WithEvents Method

Definition

Returns a copy of this with the Events 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::HandlesClauseSyntax ^ WithEvents(Microsoft::CodeAnalysis::SeparatedSyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::HandlesClauseItemSyntax ^> events);
public Microsoft.CodeAnalysis.VisualBasic.Syntax.HandlesClauseSyntax WithEvents (Microsoft.CodeAnalysis.SeparatedSyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.HandlesClauseItemSyntax> events);
member this.WithEvents : Microsoft.CodeAnalysis.SeparatedSyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.HandlesClauseItemSyntax> -> Microsoft.CodeAnalysis.VisualBasic.Syntax.HandlesClauseSyntax
Public Function WithEvents (events As SeparatedSyntaxList(Of HandlesClauseItemSyntax)) As HandlesClauseSyntax

Parameters

Returns

Applies to