SyntaxFactory.EventBlock Method

Definition

Overloads

EventBlock(EventStatementSyntax, SyntaxList<AccessorBlockSyntax>)

Represents a custom event declaration: A declaration that has a beginning event declaration, some accessor blocks and an end statement.

EventBlock(EventStatementSyntax, SyntaxList<AccessorBlockSyntax>, EndBlockStatementSyntax)

Represents a custom event declaration: A declaration that has a beginning event declaration, some accessor blocks and an end statement.

EventBlock(EventStatementSyntax, SyntaxList<AccessorBlockSyntax>)

Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb

Represents a custom event declaration: A declaration that has a beginning event declaration, some accessor blocks and an end statement.

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::EventBlockSyntax ^ EventBlock(Microsoft::CodeAnalysis::VisualBasic::Syntax::EventStatementSyntax ^ eventStatement, Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::AccessorBlockSyntax ^> accessors);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.EventBlockSyntax EventBlock (Microsoft.CodeAnalysis.VisualBasic.Syntax.EventStatementSyntax eventStatement, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.AccessorBlockSyntax> accessors);
static member EventBlock : Microsoft.CodeAnalysis.VisualBasic.Syntax.EventStatementSyntax * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.AccessorBlockSyntax> -> Microsoft.CodeAnalysis.VisualBasic.Syntax.EventBlockSyntax
Public Shared Function EventBlock (eventStatement As EventStatementSyntax, accessors As SyntaxList(Of AccessorBlockSyntax)) As EventBlockSyntax

Parameters

eventStatement
EventStatementSyntax

The event declaration that begins the block.

accessors
SyntaxList<AccessorBlockSyntax>

The accessor blocks contained in the custom event declaration, between the Event statement and the End Event statement.

Returns

Applies to

EventBlock(EventStatementSyntax, SyntaxList<AccessorBlockSyntax>, EndBlockStatementSyntax)

Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb

Represents a custom event declaration: A declaration that has a beginning event declaration, some accessor blocks and an end statement.

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

Parameters

eventStatement
EventStatementSyntax

The event declaration that begins the block.

accessors
SyntaxList<AccessorBlockSyntax>

The accessor blocks contained in the custom event declaration, between the Event statement and the End Event statement.

endEventStatement
EndBlockStatementSyntax

The End Event statement that ends the block.

Returns

Applies to