Share via


SyntaxFactory.MultiLineIfBlock Method

Definition

Overloads

MultiLineIfBlock(IfStatementSyntax, SyntaxList<StatementSyntax>, SyntaxList<ElseIfBlockSyntax>, ElseBlockSyntax, EndBlockStatementSyntax)

Represents a multi-line "If ... Then ... ElseIf ... Then ... Else ... End If" block.

MultiLineIfBlock(IfStatementSyntax)

Represents a multi-line "If ... Then ... ElseIf ... Then ... Else ... End If" block.

MultiLineIfBlock(IfStatementSyntax, SyntaxList<StatementSyntax>, SyntaxList<ElseIfBlockSyntax>, ElseBlockSyntax)

Represents a multi-line "If ... Then ... ElseIf ... Then ... Else ... End If" block.

MultiLineIfBlock(IfStatementSyntax, SyntaxList<StatementSyntax>, SyntaxList<ElseIfBlockSyntax>, ElseBlockSyntax, 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 multi-line "If ... Then ... ElseIf ... Then ... Else ... End If" block.

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::MultiLineIfBlockSyntax ^ MultiLineIfBlock(Microsoft::CodeAnalysis::VisualBasic::Syntax::IfStatementSyntax ^ ifStatement, Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::StatementSyntax ^> statements, Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::ElseIfBlockSyntax ^> elseIfBlocks, Microsoft::CodeAnalysis::VisualBasic::Syntax::ElseBlockSyntax ^ elseBlock, Microsoft::CodeAnalysis::VisualBasic::Syntax::EndBlockStatementSyntax ^ endIfStatement);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.MultiLineIfBlockSyntax MultiLineIfBlock (Microsoft.CodeAnalysis.VisualBasic.Syntax.IfStatementSyntax ifStatement, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.StatementSyntax> statements, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.ElseIfBlockSyntax> elseIfBlocks, Microsoft.CodeAnalysis.VisualBasic.Syntax.ElseBlockSyntax elseBlock, Microsoft.CodeAnalysis.VisualBasic.Syntax.EndBlockStatementSyntax endIfStatement);
static member MultiLineIfBlock : Microsoft.CodeAnalysis.VisualBasic.Syntax.IfStatementSyntax * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.StatementSyntax> * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.ElseIfBlockSyntax> * Microsoft.CodeAnalysis.VisualBasic.Syntax.ElseBlockSyntax * Microsoft.CodeAnalysis.VisualBasic.Syntax.EndBlockStatementSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.MultiLineIfBlockSyntax
Public Shared Function MultiLineIfBlock (ifStatement As IfStatementSyntax, statements As SyntaxList(Of StatementSyntax), elseIfBlocks As SyntaxList(Of ElseIfBlockSyntax), elseBlock As ElseBlockSyntax, endIfStatement As EndBlockStatementSyntax) As MultiLineIfBlockSyntax

Parameters

ifStatement
IfStatementSyntax

The "If" statement that begins the "If" block.

statements
SyntaxList<StatementSyntax>

A list of statements to be executed if the condition expression evaluates as true.

elseIfBlocks
SyntaxList<ElseIfBlockSyntax>

A list of "ElseIf" blocks to be evaluated, in order, if the condition expression of the "If" statement evaluates as false.

elseBlock
ElseBlockSyntax

An "Else" block to be executed if the condition expression of the "If" statement and all "ElseIf" blocks evaluate as false.

endIfStatement
EndBlockStatementSyntax

Then "End If" statement.

Returns

Applies to

MultiLineIfBlock(IfStatementSyntax)

Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
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 multi-line "If ... Then ... ElseIf ... Then ... Else ... End If" block.

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::MultiLineIfBlockSyntax ^ MultiLineIfBlock(Microsoft::CodeAnalysis::VisualBasic::Syntax::IfStatementSyntax ^ ifStatement);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.MultiLineIfBlockSyntax MultiLineIfBlock (Microsoft.CodeAnalysis.VisualBasic.Syntax.IfStatementSyntax ifStatement);
static member MultiLineIfBlock : Microsoft.CodeAnalysis.VisualBasic.Syntax.IfStatementSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.MultiLineIfBlockSyntax
Public Shared Function MultiLineIfBlock (ifStatement As IfStatementSyntax) As MultiLineIfBlockSyntax

Parameters

ifStatement
IfStatementSyntax

The "If" statement that begins the "If" block.

Returns

Applies to

MultiLineIfBlock(IfStatementSyntax, SyntaxList<StatementSyntax>, SyntaxList<ElseIfBlockSyntax>, ElseBlockSyntax)

Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
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 multi-line "If ... Then ... ElseIf ... Then ... Else ... End If" block.

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::MultiLineIfBlockSyntax ^ MultiLineIfBlock(Microsoft::CodeAnalysis::VisualBasic::Syntax::IfStatementSyntax ^ ifStatement, Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::StatementSyntax ^> statements, Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::ElseIfBlockSyntax ^> elseIfBlocks, Microsoft::CodeAnalysis::VisualBasic::Syntax::ElseBlockSyntax ^ elseBlock);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.MultiLineIfBlockSyntax MultiLineIfBlock (Microsoft.CodeAnalysis.VisualBasic.Syntax.IfStatementSyntax ifStatement, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.StatementSyntax> statements, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.ElseIfBlockSyntax> elseIfBlocks, Microsoft.CodeAnalysis.VisualBasic.Syntax.ElseBlockSyntax elseBlock);
static member MultiLineIfBlock : Microsoft.CodeAnalysis.VisualBasic.Syntax.IfStatementSyntax * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.StatementSyntax> * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.ElseIfBlockSyntax> * Microsoft.CodeAnalysis.VisualBasic.Syntax.ElseBlockSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.MultiLineIfBlockSyntax
Public Shared Function MultiLineIfBlock (ifStatement As IfStatementSyntax, statements As SyntaxList(Of StatementSyntax), elseIfBlocks As SyntaxList(Of ElseIfBlockSyntax), elseBlock As ElseBlockSyntax) As MultiLineIfBlockSyntax

Parameters

ifStatement
IfStatementSyntax

The "If" statement that begins the "If" block.

statements
SyntaxList<StatementSyntax>

A list of statements to be executed if the condition expression evaluates as true.

elseIfBlocks
SyntaxList<ElseIfBlockSyntax>

A list of "ElseIf" blocks to be evaluated, in order, if the condition expression of the "If" statement evaluates as false.

elseBlock
ElseBlockSyntax

An "Else" block to be executed if the condition expression of the "If" statement and all "ElseIf" blocks evaluate as false.

Returns

Applies to