Partilhar via


SyntaxFactory.ConstructorBlock Method

Definition

Overloads

ConstructorBlock(SubNewStatementSyntax)

Represents a constructor block declaration: A declaration that has a beginning declaration, a body of executable statements and an end statement.

ConstructorBlock(SubNewStatementSyntax, SyntaxList<StatementSyntax>)

Represents a constructor block declaration: A declaration that has a beginning declaration, a body of executable statements and an end statement.

ConstructorBlock(SubNewStatementSyntax, SyntaxList<StatementSyntax>, EndBlockStatementSyntax)

Represents a constructor block declaration: A declaration that has a beginning declaration, a body of executable statements and an end statement.

ConstructorBlock(SubNewStatementSyntax)

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 constructor block declaration: A declaration that has a beginning declaration, a body of executable statements and an end statement.

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::ConstructorBlockSyntax ^ ConstructorBlock(Microsoft::CodeAnalysis::VisualBasic::Syntax::SubNewStatementSyntax ^ subNewStatement);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.ConstructorBlockSyntax ConstructorBlock (Microsoft.CodeAnalysis.VisualBasic.Syntax.SubNewStatementSyntax subNewStatement);
static member ConstructorBlock : Microsoft.CodeAnalysis.VisualBasic.Syntax.SubNewStatementSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.ConstructorBlockSyntax
Public Shared Function ConstructorBlock (subNewStatement As SubNewStatementSyntax) As ConstructorBlockSyntax

Parameters

subNewStatement
SubNewStatementSyntax

The "Sub New" statement that begins the block.

Returns

Applies to

ConstructorBlock(SubNewStatementSyntax, 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 a constructor block declaration: A declaration that has a beginning declaration, a body of executable statements and an end statement.

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::ConstructorBlockSyntax ^ ConstructorBlock(Microsoft::CodeAnalysis::VisualBasic::Syntax::SubNewStatementSyntax ^ subNewStatement, Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::StatementSyntax ^> statements);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.ConstructorBlockSyntax ConstructorBlock (Microsoft.CodeAnalysis.VisualBasic.Syntax.SubNewStatementSyntax subNewStatement, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.StatementSyntax> statements);
static member ConstructorBlock : Microsoft.CodeAnalysis.VisualBasic.Syntax.SubNewStatementSyntax * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.StatementSyntax> -> Microsoft.CodeAnalysis.VisualBasic.Syntax.ConstructorBlockSyntax
Public Shared Function ConstructorBlock (subNewStatement As SubNewStatementSyntax, statements As SyntaxList(Of StatementSyntax)) As ConstructorBlockSyntax

Parameters

subNewStatement
SubNewStatementSyntax

The "Sub New" statement that begins the block.

statements
SyntaxList<StatementSyntax>

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

Returns

Applies to

ConstructorBlock(SubNewStatementSyntax, 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 a constructor block declaration: A declaration that has a beginning declaration, a body of executable statements and an end statement.

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::ConstructorBlockSyntax ^ ConstructorBlock(Microsoft::CodeAnalysis::VisualBasic::Syntax::SubNewStatementSyntax ^ subNewStatement, Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::StatementSyntax ^> statements, Microsoft::CodeAnalysis::VisualBasic::Syntax::EndBlockStatementSyntax ^ endSubStatement);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.ConstructorBlockSyntax ConstructorBlock (Microsoft.CodeAnalysis.VisualBasic.Syntax.SubNewStatementSyntax subNewStatement, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.StatementSyntax> statements, Microsoft.CodeAnalysis.VisualBasic.Syntax.EndBlockStatementSyntax endSubStatement);
static member ConstructorBlock : Microsoft.CodeAnalysis.VisualBasic.Syntax.SubNewStatementSyntax * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.StatementSyntax> * Microsoft.CodeAnalysis.VisualBasic.Syntax.EndBlockStatementSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.ConstructorBlockSyntax
Public Shared Function ConstructorBlock (subNewStatement As SubNewStatementSyntax, statements As SyntaxList(Of StatementSyntax), endSubStatement As EndBlockStatementSyntax) As ConstructorBlockSyntax

Parameters

subNewStatement
SubNewStatementSyntax

The "Sub New" statement that begins the block.

statements
SyntaxList<StatementSyntax>

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

endSubStatement
EndBlockStatementSyntax

The "End Sub" statement that ends the block declaration.

Returns

Applies to