SyntaxFactory.CaseStatement Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CaseStatement(SyntaxKind, CaseClauseSyntax[]) |
Represents a Case or Case Else statement. This statement is always the Begin of a CaseBlock. If this is a Case Else statement, the Kind=CaseElse, otherwise the Kind=Case. |
CaseStatement(SyntaxKind, SyntaxToken, SeparatedSyntaxList<CaseClauseSyntax>) |
Represents a Case or Case Else statement. This statement is always the Begin of a CaseBlock. If this is a Case Else statement, the Kind=CaseElse, otherwise the Kind=Case. |
CaseStatement(SyntaxKind, SeparatedSyntaxList<CaseClauseSyntax>) |
Represents a Case or Case Else statement. This statement is always the Begin of a CaseBlock. If this is a Case Else statement, the Kind=CaseElse, otherwise the Kind=Case. |
CaseStatement(SyntaxToken, SeparatedSyntaxList<CaseClauseSyntax>) |
Represents a Case or Case Else statement. This statement is always the Begin of a CaseBlock. If this is a Case Else statement, the Kind=CaseElse, otherwise the Kind=Case. |
CaseStatement(CaseClauseSyntax[]) |
Represents a Case or Case Else statement. This statement is always the Begin of a CaseBlock. If this is a Case Else statement, the Kind=CaseElse, otherwise the Kind=Case. |
CaseStatement(SeparatedSyntaxList<CaseClauseSyntax>) |
Represents a Case or Case Else statement. This statement is always the Begin of a CaseBlock. If this is a Case Else statement, the Kind=CaseElse, otherwise the Kind=Case. |
CaseStatement(SyntaxKind, CaseClauseSyntax[])
- 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
- Source:
- Syntax.xml.Main.Generated.vb
Represents a Case or Case Else statement. This statement is always the Begin of a CaseBlock. If this is a Case Else statement, the Kind=CaseElse, otherwise the Kind=Case.
public:
static Microsoft::CodeAnalysis::VisualBasic::Syntax::CaseStatementSyntax ^ CaseStatement(Microsoft::CodeAnalysis::VisualBasic::SyntaxKind kind, ... cli::array <Microsoft::CodeAnalysis::VisualBasic::Syntax::CaseClauseSyntax ^> ^ cases);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.CaseStatementSyntax CaseStatement (Microsoft.CodeAnalysis.VisualBasic.SyntaxKind kind, params Microsoft.CodeAnalysis.VisualBasic.Syntax.CaseClauseSyntax[] cases);
static member CaseStatement : Microsoft.CodeAnalysis.VisualBasic.SyntaxKind * Microsoft.CodeAnalysis.VisualBasic.Syntax.CaseClauseSyntax[] -> Microsoft.CodeAnalysis.VisualBasic.Syntax.CaseStatementSyntax
Public Shared Function CaseStatement (kind As SyntaxKind, ParamArray cases As CaseClauseSyntax()) As CaseStatementSyntax
Parameters
- kind
- SyntaxKind
A SyntaxKind representing the specific kind of CaseStatementSyntax. One of CaseStatement, CaseElseStatement.
- cases
- CaseClauseSyntax[]
A list of clauses associated with this Case. If Kind=CaseElse, then this list has exactly one child, which is a ElseCaseClause.
Returns
Applies to
CaseStatement(SyntaxKind, SyntaxToken, SeparatedSyntaxList<CaseClauseSyntax>)
- 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
- Source:
- Syntax.xml.Main.Generated.vb
Represents a Case or Case Else statement. This statement is always the Begin of a CaseBlock. If this is a Case Else statement, the Kind=CaseElse, otherwise the Kind=Case.
public:
static Microsoft::CodeAnalysis::VisualBasic::Syntax::CaseStatementSyntax ^ CaseStatement(Microsoft::CodeAnalysis::VisualBasic::SyntaxKind kind, Microsoft::CodeAnalysis::SyntaxToken caseKeyword, Microsoft::CodeAnalysis::SeparatedSyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::CaseClauseSyntax ^> cases);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.CaseStatementSyntax CaseStatement (Microsoft.CodeAnalysis.VisualBasic.SyntaxKind kind, Microsoft.CodeAnalysis.SyntaxToken caseKeyword, Microsoft.CodeAnalysis.SeparatedSyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.CaseClauseSyntax> cases);
static member CaseStatement : Microsoft.CodeAnalysis.VisualBasic.SyntaxKind * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.SeparatedSyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.CaseClauseSyntax> -> Microsoft.CodeAnalysis.VisualBasic.Syntax.CaseStatementSyntax
Public Shared Function CaseStatement (kind As SyntaxKind, caseKeyword As SyntaxToken, cases As SeparatedSyntaxList(Of CaseClauseSyntax)) As CaseStatementSyntax
Parameters
- kind
- SyntaxKind
A SyntaxKind representing the specific kind of CaseStatementSyntax. One of CaseStatement, CaseElseStatement.
- caseKeyword
- SyntaxToken
The "Case" keyword
A list of clauses associated with this Case. If Kind=CaseElse, then this list has exactly one child, which is a ElseCaseClause.
Returns
Applies to
CaseStatement(SyntaxKind, SeparatedSyntaxList<CaseClauseSyntax>)
- 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
- Source:
- Syntax.xml.Main.Generated.vb
Represents a Case or Case Else statement. This statement is always the Begin of a CaseBlock. If this is a Case Else statement, the Kind=CaseElse, otherwise the Kind=Case.
public:
static Microsoft::CodeAnalysis::VisualBasic::Syntax::CaseStatementSyntax ^ CaseStatement(Microsoft::CodeAnalysis::VisualBasic::SyntaxKind kind, Microsoft::CodeAnalysis::SeparatedSyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::CaseClauseSyntax ^> cases);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.CaseStatementSyntax CaseStatement (Microsoft.CodeAnalysis.VisualBasic.SyntaxKind kind, Microsoft.CodeAnalysis.SeparatedSyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.CaseClauseSyntax> cases);
static member CaseStatement : Microsoft.CodeAnalysis.VisualBasic.SyntaxKind * Microsoft.CodeAnalysis.SeparatedSyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.CaseClauseSyntax> -> Microsoft.CodeAnalysis.VisualBasic.Syntax.CaseStatementSyntax
Public Shared Function CaseStatement (kind As SyntaxKind, cases As SeparatedSyntaxList(Of CaseClauseSyntax)) As CaseStatementSyntax
Parameters
- kind
- SyntaxKind
A SyntaxKind representing the specific kind of CaseStatementSyntax. One of CaseStatement, CaseElseStatement.
A list of clauses associated with this Case. If Kind=CaseElse, then this list has exactly one child, which is a ElseCaseClause.
Returns
Applies to
CaseStatement(SyntaxToken, SeparatedSyntaxList<CaseClauseSyntax>)
- 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
- Source:
- Syntax.xml.Main.Generated.vb
Represents a Case or Case Else statement. This statement is always the Begin of a CaseBlock. If this is a Case Else statement, the Kind=CaseElse, otherwise the Kind=Case.
public:
static Microsoft::CodeAnalysis::VisualBasic::Syntax::CaseStatementSyntax ^ CaseStatement(Microsoft::CodeAnalysis::SyntaxToken caseKeyword, Microsoft::CodeAnalysis::SeparatedSyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::CaseClauseSyntax ^> cases);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.CaseStatementSyntax CaseStatement (Microsoft.CodeAnalysis.SyntaxToken caseKeyword, Microsoft.CodeAnalysis.SeparatedSyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.CaseClauseSyntax> cases);
static member CaseStatement : Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.SeparatedSyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.CaseClauseSyntax> -> Microsoft.CodeAnalysis.VisualBasic.Syntax.CaseStatementSyntax
Public Shared Function CaseStatement (caseKeyword As SyntaxToken, cases As SeparatedSyntaxList(Of CaseClauseSyntax)) As CaseStatementSyntax
Parameters
- caseKeyword
- SyntaxToken
The "Case" keyword
A list of clauses associated with this Case. If Kind=CaseElse, then this list has exactly one child, which is a ElseCaseClause.
Returns
Applies to
CaseStatement(CaseClauseSyntax[])
- 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
- Source:
- Syntax.xml.Main.Generated.vb
Represents a Case or Case Else statement. This statement is always the Begin of a CaseBlock. If this is a Case Else statement, the Kind=CaseElse, otherwise the Kind=Case.
public:
static Microsoft::CodeAnalysis::VisualBasic::Syntax::CaseStatementSyntax ^ CaseStatement(... cli::array <Microsoft::CodeAnalysis::VisualBasic::Syntax::CaseClauseSyntax ^> ^ cases);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.CaseStatementSyntax CaseStatement (params Microsoft.CodeAnalysis.VisualBasic.Syntax.CaseClauseSyntax[] cases);
static member CaseStatement : Microsoft.CodeAnalysis.VisualBasic.Syntax.CaseClauseSyntax[] -> Microsoft.CodeAnalysis.VisualBasic.Syntax.CaseStatementSyntax
Public Shared Function CaseStatement (ParamArray cases As CaseClauseSyntax()) As CaseStatementSyntax
Parameters
- cases
- CaseClauseSyntax[]
A list of clauses associated with this Case. If Kind=CaseElse, then this list has exactly one child, which is a ElseCaseClause.
Returns
Applies to
CaseStatement(SeparatedSyntaxList<CaseClauseSyntax>)
- 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
- Source:
- Syntax.xml.Main.Generated.vb
Represents a Case or Case Else statement. This statement is always the Begin of a CaseBlock. If this is a Case Else statement, the Kind=CaseElse, otherwise the Kind=Case.
public:
static Microsoft::CodeAnalysis::VisualBasic::Syntax::CaseStatementSyntax ^ CaseStatement(Microsoft::CodeAnalysis::SeparatedSyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::CaseClauseSyntax ^> cases);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.CaseStatementSyntax CaseStatement (Microsoft.CodeAnalysis.SeparatedSyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.CaseClauseSyntax> cases);
static member CaseStatement : Microsoft.CodeAnalysis.SeparatedSyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.CaseClauseSyntax> -> Microsoft.CodeAnalysis.VisualBasic.Syntax.CaseStatementSyntax
Public Shared Function CaseStatement (cases As SeparatedSyntaxList(Of CaseClauseSyntax)) As CaseStatementSyntax
Parameters
A list of clauses associated with this Case. If Kind=CaseElse, then this list has exactly one child, which is a ElseCaseClause.