共用方式為


EventBlockSyntax.Update 方法

定義

傳回具有指定變更的這個 複本。 如果沒有實際變更,則傳回這個實例。

public:
 Microsoft::CodeAnalysis::VisualBasic::Syntax::EventBlockSyntax ^ Update(Microsoft::CodeAnalysis::VisualBasic::Syntax::EventStatementSyntax ^ eventStatement, Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::AccessorBlockSyntax ^> accessors, Microsoft::CodeAnalysis::VisualBasic::Syntax::EndBlockStatementSyntax ^ endEventStatement);
public Microsoft.CodeAnalysis.VisualBasic.Syntax.EventBlockSyntax Update (Microsoft.CodeAnalysis.VisualBasic.Syntax.EventStatementSyntax eventStatement, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.AccessorBlockSyntax> accessors, Microsoft.CodeAnalysis.VisualBasic.Syntax.EndBlockStatementSyntax endEventStatement);
member this.Update : Microsoft.CodeAnalysis.VisualBasic.Syntax.EventStatementSyntax * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.AccessorBlockSyntax> * Microsoft.CodeAnalysis.VisualBasic.Syntax.EndBlockStatementSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.EventBlockSyntax
Public Function Update (eventStatement As EventStatementSyntax, accessors As SyntaxList(Of AccessorBlockSyntax), endEventStatement As EndBlockStatementSyntax) As EventBlockSyntax

參數

eventStatement
EventStatementSyntax

EventStatement 屬性的值。

accessors
SyntaxList<AccessorBlockSyntax>

存取子屬性的值。

endEventStatement
EndBlockStatementSyntax

EndEventStatement 屬性的值。

傳回

適用於