SyntaxFactory.CaseBlock 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
CaseBlock(CaseStatementSyntax) |
表示 case 語句及其後續區塊。 |
CaseBlock(CaseStatementSyntax, SyntaxList<StatementSyntax>) |
表示 case 語句及其後續區塊。 |
CaseBlock(SyntaxKind, CaseStatementSyntax) |
表示 case 語句及其後續區塊。 |
CaseBlock(SyntaxKind, CaseStatementSyntax, SyntaxList<StatementSyntax>) |
表示 case 語句及其後續區塊。 |
CaseBlock(CaseStatementSyntax)
表示 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>)
表示 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)
表示 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>)
表示 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>
案例區塊中包含的語句。 這可能是空的清單。