SyntaxFactory.AddHandlerAccessorBlock Method

Definition

Overloads

AddHandlerAccessorBlock(AccessorStatementSyntax)

Represents an accessor block member declaration: A declaration that has a beginning declaration, a body of executable statements and an end statement. Examples include property accessors and custom event accessors.

AddHandlerAccessorBlock(AccessorStatementSyntax, SyntaxList<StatementSyntax>)

Represents an accessor block member declaration: A declaration that has a beginning declaration, a body of executable statements and an end statement. Examples include property accessors and custom event accessors.

AddHandlerAccessorBlock(AccessorStatementSyntax, SyntaxList<StatementSyntax>, EndBlockStatementSyntax)

Represents an accessor block member declaration: A declaration that has a beginning declaration, a body of executable statements and an end statement. Examples include property accessors and custom event accessors.

AddHandlerAccessorBlock(AccessorStatementSyntax)

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 an accessor block member declaration: A declaration that has a beginning declaration, a body of executable statements and an end statement. Examples include property accessors and custom event accessors.

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::AccessorBlockSyntax ^ AddHandlerAccessorBlock(Microsoft::CodeAnalysis::VisualBasic::Syntax::AccessorStatementSyntax ^ accessorStatement);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.AccessorBlockSyntax AddHandlerAccessorBlock (Microsoft.CodeAnalysis.VisualBasic.Syntax.AccessorStatementSyntax accessorStatement);
static member AddHandlerAccessorBlock : Microsoft.CodeAnalysis.VisualBasic.Syntax.AccessorStatementSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.AccessorBlockSyntax
Public Shared Function AddHandlerAccessorBlock (accessorStatement As AccessorStatementSyntax) As AccessorBlockSyntax

Parameters

accessorStatement
AccessorStatementSyntax

The "Get", "Set", "AddHandler", "RemoveHandler", or "RaiseEvent" statement that begins the accessor block.

Returns

Applies to

AddHandlerAccessorBlock(AccessorStatementSyntax, SyntaxList<StatementSyntax>)

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 an accessor block member declaration: A declaration that has a beginning declaration, a body of executable statements and an end statement. Examples include property accessors and custom event accessors.

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::AccessorBlockSyntax ^ AddHandlerAccessorBlock(Microsoft::CodeAnalysis::VisualBasic::Syntax::AccessorStatementSyntax ^ accessorStatement, Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::StatementSyntax ^> statements);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.AccessorBlockSyntax AddHandlerAccessorBlock (Microsoft.CodeAnalysis.VisualBasic.Syntax.AccessorStatementSyntax accessorStatement, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.StatementSyntax> statements);
static member AddHandlerAccessorBlock : Microsoft.CodeAnalysis.VisualBasic.Syntax.AccessorStatementSyntax * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.StatementSyntax> -> Microsoft.CodeAnalysis.VisualBasic.Syntax.AccessorBlockSyntax
Public Shared Function AddHandlerAccessorBlock (accessorStatement As AccessorStatementSyntax, statements As SyntaxList(Of StatementSyntax)) As AccessorBlockSyntax

Parameters

accessorStatement
AccessorStatementSyntax

The "Get", "Set", "AddHandler", "RemoveHandler", or "RaiseEvent" statement that begins the accessor block.

statements
SyntaxList<StatementSyntax>

The statements contained in the block statement. This might be an empty list.

Returns

Applies to

AddHandlerAccessorBlock(AccessorStatementSyntax, SyntaxList<StatementSyntax>, 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 an accessor block member declaration: A declaration that has a beginning declaration, a body of executable statements and an end statement. Examples include property accessors and custom event accessors.

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::AccessorBlockSyntax ^ AddHandlerAccessorBlock(Microsoft::CodeAnalysis::VisualBasic::Syntax::AccessorStatementSyntax ^ accessorStatement, Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::StatementSyntax ^> statements, Microsoft::CodeAnalysis::VisualBasic::Syntax::EndBlockStatementSyntax ^ endAccessorStatement);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.AccessorBlockSyntax AddHandlerAccessorBlock (Microsoft.CodeAnalysis.VisualBasic.Syntax.AccessorStatementSyntax accessorStatement, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.StatementSyntax> statements, Microsoft.CodeAnalysis.VisualBasic.Syntax.EndBlockStatementSyntax endAccessorStatement);
static member AddHandlerAccessorBlock : Microsoft.CodeAnalysis.VisualBasic.Syntax.AccessorStatementSyntax * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.StatementSyntax> * Microsoft.CodeAnalysis.VisualBasic.Syntax.EndBlockStatementSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.AccessorBlockSyntax
Public Shared Function AddHandlerAccessorBlock (accessorStatement As AccessorStatementSyntax, statements As SyntaxList(Of StatementSyntax), endAccessorStatement As EndBlockStatementSyntax) As AccessorBlockSyntax

Parameters

accessorStatement
AccessorStatementSyntax

The "Get", "Set", "AddHandler", "RemoveHandler", or "RaiseEvent" statement that begins the accessor block.

statements
SyntaxList<StatementSyntax>

The statements contained in the block statement. This might be an empty list.

endAccessorStatement
EndBlockStatementSyntax

The "End Get", "End Set", "End AddHandler", "End RemoveHandler", or "End RaiseEvent" statement that ends the accessor block.

Returns

Applies to