Condividi tramite


EventBlockSyntax.WithEventStatement(EventStatementSyntax) Method

Definition

Returns a copy of this with the EventStatement 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::EventBlockSyntax ^ WithEventStatement(Microsoft::CodeAnalysis::VisualBasic::Syntax::EventStatementSyntax ^ eventStatement);
public Microsoft.CodeAnalysis.VisualBasic.Syntax.EventBlockSyntax WithEventStatement (Microsoft.CodeAnalysis.VisualBasic.Syntax.EventStatementSyntax eventStatement);
member this.WithEventStatement : Microsoft.CodeAnalysis.VisualBasic.Syntax.EventStatementSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.EventBlockSyntax
Public Function WithEventStatement (eventStatement As EventStatementSyntax) As EventBlockSyntax

Parameters

eventStatement
EventStatementSyntax

Returns

Applies to