Compartir a través de


CaseStatementSyntax.WithCases Method

Definition

Returns a copy of this with the Cases property changed to the specified value. Returns this instance if the specified value is the same as the current value.

public:
 Microsoft::CodeAnalysis::VisualBasic::Syntax::CaseStatementSyntax ^ WithCases(Microsoft::CodeAnalysis::SeparatedSyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::CaseClauseSyntax ^> cases);
public Microsoft.CodeAnalysis.VisualBasic.Syntax.CaseStatementSyntax WithCases (Microsoft.CodeAnalysis.SeparatedSyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.CaseClauseSyntax> cases);
member this.WithCases : Microsoft.CodeAnalysis.SeparatedSyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.CaseClauseSyntax> -> Microsoft.CodeAnalysis.VisualBasic.Syntax.CaseStatementSyntax
Public Function WithCases (cases As SeparatedSyntaxList(Of CaseClauseSyntax)) As CaseStatementSyntax

Parameters

Returns

Applies to