Partager via


SyntaxFactory.GetAccessorBlock Method

Definition

Overloads

GetAccessorBlock(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.

GetAccessorBlock(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.

GetAccessorBlock(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.

GetAccessorBlock(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 ^ GetAccessorBlock(Microsoft::CodeAnalysis::VisualBasic::Syntax::AccessorStatementSyntax ^ accessorStatement);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.AccessorBlockSyntax GetAccessorBlock (Microsoft.CodeAnalysis.VisualBasic.Syntax.AccessorStatementSyntax accessorStatement);
static member GetAccessorBlock : Microsoft.CodeAnalysis.VisualBasic.Syntax.AccessorStatementSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.AccessorBlockSyntax
Public Shared Function GetAccessorBlock (accessorStatement As AccessorStatementSyntax) As AccessorBlockSyntax

Parameters

accessorStatement
AccessorStatementSyntax

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

Returns

Applies to

GetAccessorBlock(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 ^ GetAccessorBlock(Microsoft::CodeAnalysis::VisualBasic::Syntax::AccessorStatementSyntax ^ accessorStatement, Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::StatementSyntax ^> statements);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.AccessorBlockSyntax GetAccessorBlock (Microsoft.CodeAnalysis.VisualBasic.Syntax.AccessorStatementSyntax accessorStatement, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.StatementSyntax> statements);
static member GetAccessorBlock : Microsoft.CodeAnalysis.VisualBasic.Syntax.AccessorStatementSyntax * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.StatementSyntax> -> Microsoft.CodeAnalysis.VisualBasic.Syntax.AccessorBlockSyntax
Public Shared Function GetAccessorBlock (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

GetAccessorBlock(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 ^ GetAccessorBlock(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 GetAccessorBlock (Microsoft.CodeAnalysis.VisualBasic.Syntax.AccessorStatementSyntax accessorStatement, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.StatementSyntax> statements, Microsoft.CodeAnalysis.VisualBasic.Syntax.EndBlockStatementSyntax endAccessorStatement);
static member GetAccessorBlock : 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 GetAccessorBlock (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