共用方式為


SyntaxFactory.CaseBlock 方法

定義

多載

CaseBlock(CaseStatementSyntax)

表示 case 語句及其後續區塊。

CaseBlock(CaseStatementSyntax, SyntaxList<StatementSyntax>)

表示 case 語句及其後續區塊。

CaseBlock(SyntaxKind, CaseStatementSyntax)

表示 case 語句及其後續區塊。

CaseBlock(SyntaxKind, CaseStatementSyntax, SyntaxList<StatementSyntax>)

表示 case 語句及其後續區塊。

CaseBlock(CaseStatementSyntax)

來源:
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

表示 case 語句及其後續區塊。

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::CaseBlockSyntax ^ CaseBlock(Microsoft::CodeAnalysis::VisualBasic::Syntax::CaseStatementSyntax ^ caseStatement);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.CaseBlockSyntax CaseBlock (Microsoft.CodeAnalysis.VisualBasic.Syntax.CaseStatementSyntax caseStatement);
static member CaseBlock : Microsoft.CodeAnalysis.VisualBasic.Syntax.CaseStatementSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.CaseBlockSyntax
Public Shared Function CaseBlock (caseStatement As CaseStatementSyntax) As CaseBlockSyntax

參數

caseStatement
CaseStatementSyntax

開始案例區塊的 語句。

傳回

適用於

CaseBlock(CaseStatementSyntax, SyntaxList<StatementSyntax>)

來源:
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

表示 case 語句及其後續區塊。

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::CaseBlockSyntax ^ CaseBlock(Microsoft::CodeAnalysis::VisualBasic::Syntax::CaseStatementSyntax ^ caseStatement, Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::StatementSyntax ^> statements);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.CaseBlockSyntax CaseBlock (Microsoft.CodeAnalysis.VisualBasic.Syntax.CaseStatementSyntax caseStatement, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.StatementSyntax> statements);
static member CaseBlock : Microsoft.CodeAnalysis.VisualBasic.Syntax.CaseStatementSyntax * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.StatementSyntax> -> Microsoft.CodeAnalysis.VisualBasic.Syntax.CaseBlockSyntax
Public Shared Function CaseBlock (caseStatement As CaseStatementSyntax, statements As SyntaxList(Of StatementSyntax)) As CaseBlockSyntax

參數

caseStatement
CaseStatementSyntax

開始案例區塊的 語句。

statements
SyntaxList<StatementSyntax>

案例區塊中包含的語句。 這可能是空的清單。

傳回

適用於

CaseBlock(SyntaxKind, CaseStatementSyntax)

來源:
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

表示 case 語句及其後續區塊。

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::CaseBlockSyntax ^ CaseBlock(Microsoft::CodeAnalysis::VisualBasic::SyntaxKind kind, Microsoft::CodeAnalysis::VisualBasic::Syntax::CaseStatementSyntax ^ caseStatement);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.CaseBlockSyntax CaseBlock (Microsoft.CodeAnalysis.VisualBasic.SyntaxKind kind, Microsoft.CodeAnalysis.VisualBasic.Syntax.CaseStatementSyntax caseStatement);
static member CaseBlock : Microsoft.CodeAnalysis.VisualBasic.SyntaxKind * Microsoft.CodeAnalysis.VisualBasic.Syntax.CaseStatementSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.CaseBlockSyntax
Public Shared Function CaseBlock (kind As SyntaxKind, caseStatement As CaseStatementSyntax) As CaseBlockSyntax

參數

kind
SyntaxKind

SyntaxKind 表示特定類型的 CaseBlockSyntax。 其中一個 CaseBlock,CaseElseBlock。

caseStatement
CaseStatementSyntax

開始案例區塊的 語句。

傳回

適用於

CaseBlock(SyntaxKind, CaseStatementSyntax, SyntaxList<StatementSyntax>)

來源:
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

表示 case 語句及其後續區塊。

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::CaseBlockSyntax ^ CaseBlock(Microsoft::CodeAnalysis::VisualBasic::SyntaxKind kind, Microsoft::CodeAnalysis::VisualBasic::Syntax::CaseStatementSyntax ^ caseStatement, Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::StatementSyntax ^> statements);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.CaseBlockSyntax CaseBlock (Microsoft.CodeAnalysis.VisualBasic.SyntaxKind kind, Microsoft.CodeAnalysis.VisualBasic.Syntax.CaseStatementSyntax caseStatement, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.StatementSyntax> statements);
static member CaseBlock : Microsoft.CodeAnalysis.VisualBasic.SyntaxKind * Microsoft.CodeAnalysis.VisualBasic.Syntax.CaseStatementSyntax * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.StatementSyntax> -> Microsoft.CodeAnalysis.VisualBasic.Syntax.CaseBlockSyntax
Public Shared Function CaseBlock (kind As SyntaxKind, caseStatement As CaseStatementSyntax, statements As SyntaxList(Of StatementSyntax)) As CaseBlockSyntax

參數

kind
SyntaxKind

SyntaxKind 表示特定類型的 CaseBlockSyntax。 其中一個 CaseBlock,CaseElseBlock。

caseStatement
CaseStatementSyntax

開始案例區塊的 語句。

statements
SyntaxList<StatementSyntax>

案例區塊中包含的語句。 這可能是空的清單。

傳回

適用於