Share via


SyntaxFactory.FunctionBlock Method

Definition

Overloads

FunctionBlock(MethodStatementSyntax)

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

FunctionBlock(MethodStatementSyntax, SyntaxList<StatementSyntax>)

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

FunctionBlock(MethodStatementSyntax, SyntaxList<StatementSyntax>, EndBlockStatementSyntax)

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

FunctionBlock(MethodStatementSyntax)

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

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::MethodBlockSyntax ^ FunctionBlock(Microsoft::CodeAnalysis::VisualBasic::Syntax::MethodStatementSyntax ^ subOrFunctionStatement);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.MethodBlockSyntax FunctionBlock (Microsoft.CodeAnalysis.VisualBasic.Syntax.MethodStatementSyntax subOrFunctionStatement);
static member FunctionBlock : Microsoft.CodeAnalysis.VisualBasic.Syntax.MethodStatementSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.MethodBlockSyntax
Public Shared Function FunctionBlock (subOrFunctionStatement As MethodStatementSyntax) As MethodBlockSyntax

Parameters

subOrFunctionStatement
MethodStatementSyntax

The "Sub" or "Function" statement that begins the block.

Returns

Applies to

FunctionBlock(MethodStatementSyntax, 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

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

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::MethodBlockSyntax ^ FunctionBlock(Microsoft::CodeAnalysis::VisualBasic::Syntax::MethodStatementSyntax ^ subOrFunctionStatement, Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::StatementSyntax ^> statements);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.MethodBlockSyntax FunctionBlock (Microsoft.CodeAnalysis.VisualBasic.Syntax.MethodStatementSyntax subOrFunctionStatement, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.StatementSyntax> statements);
static member FunctionBlock : Microsoft.CodeAnalysis.VisualBasic.Syntax.MethodStatementSyntax * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.StatementSyntax> -> Microsoft.CodeAnalysis.VisualBasic.Syntax.MethodBlockSyntax
Public Shared Function FunctionBlock (subOrFunctionStatement As MethodStatementSyntax, statements As SyntaxList(Of StatementSyntax)) As MethodBlockSyntax

Parameters

subOrFunctionStatement
MethodStatementSyntax

The "Sub" or "Function" statement that begins the block.

statements
SyntaxList<StatementSyntax>

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

Returns

Applies to

FunctionBlock(MethodStatementSyntax, 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

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

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::MethodBlockSyntax ^ FunctionBlock(Microsoft::CodeAnalysis::VisualBasic::Syntax::MethodStatementSyntax ^ subOrFunctionStatement, Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::StatementSyntax ^> statements, Microsoft::CodeAnalysis::VisualBasic::Syntax::EndBlockStatementSyntax ^ endSubOrFunctionStatement);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.MethodBlockSyntax FunctionBlock (Microsoft.CodeAnalysis.VisualBasic.Syntax.MethodStatementSyntax subOrFunctionStatement, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.StatementSyntax> statements, Microsoft.CodeAnalysis.VisualBasic.Syntax.EndBlockStatementSyntax endSubOrFunctionStatement);
static member FunctionBlock : Microsoft.CodeAnalysis.VisualBasic.Syntax.MethodStatementSyntax * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.StatementSyntax> * Microsoft.CodeAnalysis.VisualBasic.Syntax.EndBlockStatementSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.MethodBlockSyntax
Public Shared Function FunctionBlock (subOrFunctionStatement As MethodStatementSyntax, statements As SyntaxList(Of StatementSyntax), endSubOrFunctionStatement As EndBlockStatementSyntax) As MethodBlockSyntax

Parameters

subOrFunctionStatement
MethodStatementSyntax

The "Sub" or "Function" statement that begins the block.

statements
SyntaxList<StatementSyntax>

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

endSubOrFunctionStatement
EndBlockStatementSyntax

The "End Sub" or "End Function" statement that ends the block.

Returns

Applies to