共用方式為


SyntaxFactory.MultiLineIfBlock 方法

定義

多載

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

代表多行「如果 ...然後。。。ElseIf ...然後。。。還。。。End If「 區塊。

MultiLineIfBlock(IfStatementSyntax)

代表多行「如果 ...然後。。。ElseIf ...然後。。。還。。。End If「 區塊。

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

代表多行「如果 ...然後。。。ElseIf ...然後。。。還。。。End If「 區塊。

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

來源:
Syntax.xml.Main.Generated.vb
來源:
Syntax.xml.Main.Generated.vb
來源:
Syntax.xml.Main.Generated.vb
來源:
Syntax.xml.Main.Generated.vb
來源:
Syntax.xml.Main.Generated.vb
來源:
Syntax.xml.Main.Generated.vb
來源:
Syntax.xml.Main.Generated.vb
來源:
Syntax.xml.Main.Generated.vb
來源:
Syntax.xml.Main.Generated.vb
來源:
Syntax.xml.Main.Generated.vb
來源:
Syntax.xml.Main.Generated.vb
來源:
Syntax.xml.Main.Generated.vb
來源:
Syntax.xml.Main.Generated.vb
來源:
Syntax.xml.Main.Generated.vb
來源:
Syntax.xml.Main.Generated.vb
來源:
Syntax.xml.Main.Generated.vb
來源:
Syntax.xml.Main.Generated.vb
來源:
Syntax.xml.Main.Generated.vb
來源:
Syntax.xml.Main.Generated.vb
來源:
Syntax.xml.Main.Generated.vb
來源:
Syntax.xml.Main.Generated.vb
來源:
Syntax.xml.Main.Generated.vb
來源:
Syntax.xml.Main.Generated.vb

代表多行「如果 ...然後。。。ElseIf ...然後。。。還。。。End If「 區塊。

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

參數

ifStatement
IfStatementSyntax

開頭為 「If」 區塊的 「If」 語句。

statements
SyntaxList<StatementSyntax>

條件運算式評估為 true 時要執行的語句清單。

elseIfBlocks
SyntaxList<ElseIfBlockSyntax>

要依序評估的 「ElseIf」 區塊清單,如果 「If」 語句的條件運算式評估為 false。

elseBlock
ElseBlockSyntax

如果 「If」 語句的條件運算式和所有 「ElseIf」 區塊評估為 false,則會執行 「Else」 區塊。

endIfStatement
EndBlockStatementSyntax

然後是 「End If」 語句。

傳回

適用於

MultiLineIfBlock(IfStatementSyntax)

來源:
Syntax.xml.Main.Generated.vb
來源:
Syntax.xml.Main.Generated.vb
來源:
Syntax.xml.Main.Generated.vb
來源:
Syntax.xml.Main.Generated.vb
來源:
Syntax.xml.Main.Generated.vb
來源:
Syntax.xml.Main.Generated.vb
來源:
Syntax.xml.Main.Generated.vb
來源:
Syntax.xml.Main.Generated.vb
來源:
Syntax.xml.Main.Generated.vb
來源:
Syntax.xml.Main.Generated.vb
來源:
Syntax.xml.Main.Generated.vb
來源:
Syntax.xml.Main.Generated.vb
來源:
Syntax.xml.Main.Generated.vb
來源:
Syntax.xml.Main.Generated.vb
來源:
Syntax.xml.Main.Generated.vb
來源:
Syntax.xml.Main.Generated.vb
來源:
Syntax.xml.Main.Generated.vb
來源:
Syntax.xml.Main.Generated.vb
來源:
Syntax.xml.Main.Generated.vb
來源:
Syntax.xml.Main.Generated.vb
來源:
Syntax.xml.Main.Generated.vb
來源:
Syntax.xml.Main.Generated.vb
來源:
Syntax.xml.Main.Generated.vb

代表多行「如果 ...然後。。。ElseIf ...然後。。。還。。。End If「 區塊。

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

參數

ifStatement
IfStatementSyntax

開頭為 「If」 區塊的 「If」 語句。

傳回

適用於

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

來源:
Syntax.xml.Main.Generated.vb
來源:
Syntax.xml.Main.Generated.vb
來源:
Syntax.xml.Main.Generated.vb
來源:
Syntax.xml.Main.Generated.vb
來源:
Syntax.xml.Main.Generated.vb
來源:
Syntax.xml.Main.Generated.vb
來源:
Syntax.xml.Main.Generated.vb
來源:
Syntax.xml.Main.Generated.vb
來源:
Syntax.xml.Main.Generated.vb
來源:
Syntax.xml.Main.Generated.vb
來源:
Syntax.xml.Main.Generated.vb
來源:
Syntax.xml.Main.Generated.vb
來源:
Syntax.xml.Main.Generated.vb
來源:
Syntax.xml.Main.Generated.vb
來源:
Syntax.xml.Main.Generated.vb
來源:
Syntax.xml.Main.Generated.vb
來源:
Syntax.xml.Main.Generated.vb
來源:
Syntax.xml.Main.Generated.vb
來源:
Syntax.xml.Main.Generated.vb
來源:
Syntax.xml.Main.Generated.vb
來源:
Syntax.xml.Main.Generated.vb
來源:
Syntax.xml.Main.Generated.vb
來源:
Syntax.xml.Main.Generated.vb

代表多行「如果 ...然後。。。ElseIf ...然後。。。還。。。End If「 區塊。

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

參數

ifStatement
IfStatementSyntax

開頭為 「If」 區塊的 「If」 語句。

statements
SyntaxList<StatementSyntax>

條件運算式評估為 true 時要執行的語句清單。

elseIfBlocks
SyntaxList<ElseIfBlockSyntax>

要依序評估的 「ElseIf」 區塊清單,如果 「If」 語句的條件運算式評估為 false。

elseBlock
ElseBlockSyntax

如果 「If」 語句的條件運算式和所有 「ElseIf」 區塊評估為 false,則會執行 「Else」 區塊。

傳回

適用於