SyntaxFactory.CaseStatement 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
CaseStatement(SyntaxKind, CaseClauseSyntax[]) |
表示 Case 或 Case Else 语句。 此语句始终是 CaseBlock 的 Begin。 如果这是 Case Else 语句,则为 Kind=CaseElse,否则为 Kind=Case。 |
CaseStatement(SyntaxKind, SyntaxToken, SeparatedSyntaxList<CaseClauseSyntax>) |
表示 Case 或 Case Else 语句。 此语句始终是 CaseBlock 的 Begin。 如果这是 Case Else 语句,则为 Kind=CaseElse,否则为 Kind=Case。 |
CaseStatement(SyntaxKind, SeparatedSyntaxList<CaseClauseSyntax>) |
表示 Case 或 Case Else 语句。 此语句始终是 CaseBlock 的 Begin。 如果这是 Case Else 语句,则为 Kind=CaseElse,否则为 Kind=Case。 |
CaseStatement(SyntaxToken, SeparatedSyntaxList<CaseClauseSyntax>) |
表示 Case 或 Case Else 语句。 此语句始终是 CaseBlock 的 Begin。 如果这是 Case Else 语句,则为 Kind=CaseElse,否则为 Kind=Case。 |
CaseStatement(CaseClauseSyntax[]) |
表示 Case 或 Case Else 语句。 此语句始终是 CaseBlock 的 Begin。 如果这是 Case Else 语句,则为 Kind=CaseElse,否则为 Kind=Case。 |
CaseStatement(SeparatedSyntaxList<CaseClauseSyntax>) |
表示 Case 或 Case Else 语句。 此语句始终是 CaseBlock 的 Begin。 如果这是 Case Else 语句,则为 Kind=CaseElse,否则为 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
表示 Case 或 Case Else 语句。 此语句始终是 CaseBlock 的 Begin。 如果这是 Case Else 语句,则为 Kind=CaseElse,否则为 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
参数
- kind
- SyntaxKind
一个 SyntaxKind ,表示特定类型的 CaseStatementSyntax。 CaseStatement 之一,CaseElseStatement。
- cases
- CaseClauseSyntax[]
与此 Case 关联的子句列表。 如果 Kind=CaseElse,则此列表恰好有一个子级,即 ElseCaseClause。
返回
适用于
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
表示 Case 或 Case Else 语句。 此语句始终是 CaseBlock 的 Begin。 如果这是 Case Else 语句,则为 Kind=CaseElse,否则为 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
参数
- kind
- SyntaxKind
一个 SyntaxKind ,表示特定类型的 CaseStatementSyntax。 CaseStatement 之一,CaseElseStatement。
- caseKeyword
- SyntaxToken
“Case”关键字 (keyword)
与此 Case 关联的子句列表。 如果 Kind=CaseElse,则此列表恰好有一个子级,即 ElseCaseClause。
返回
适用于
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
表示 Case 或 Case Else 语句。 此语句始终是 CaseBlock 的 Begin。 如果这是 Case Else 语句,则为 Kind=CaseElse,否则为 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
参数
- kind
- SyntaxKind
一个 SyntaxKind ,表示特定类型的 CaseStatementSyntax。 CaseStatement 之一,CaseElseStatement。
与此 Case 关联的子句列表。 如果 Kind=CaseElse,则此列表恰好有一个子级,即 ElseCaseClause。
返回
适用于
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
表示 Case 或 Case Else 语句。 此语句始终是 CaseBlock 的 Begin。 如果这是 Case Else 语句,则为 Kind=CaseElse,否则为 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
参数
- caseKeyword
- SyntaxToken
“Case”关键字 (keyword)
与此 Case 关联的子句列表。 如果 Kind=CaseElse,则此列表恰好有一个子级,即 ElseCaseClause。
返回
适用于
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
表示 Case 或 Case Else 语句。 此语句始终是 CaseBlock 的 Begin。 如果这是 Case Else 语句,则为 Kind=CaseElse,否则为 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
参数
- cases
- CaseClauseSyntax[]
与此 Case 关联的子句列表。 如果 Kind=CaseElse,则此列表恰好有一个子级,即 ElseCaseClause。
返回
适用于
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
表示 Case 或 Case Else 语句。 此语句始终是 CaseBlock 的 Begin。 如果这是 Case Else 语句,则为 Kind=CaseElse,否则为 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
参数
与此 Case 关联的子句列表。 如果 Kind=CaseElse,则此列表恰好有一个子级,即 ElseCaseClause。