Share via


SwitchExpressionArmSyntax.WithWhenClause(WhenClauseSyntax) Method

Definition

public Microsoft.CodeAnalysis.CSharp.Syntax.SwitchExpressionArmSyntax WithWhenClause (Microsoft.CodeAnalysis.CSharp.Syntax.WhenClauseSyntax whenClause);
public Microsoft.CodeAnalysis.CSharp.Syntax.SwitchExpressionArmSyntax WithWhenClause (Microsoft.CodeAnalysis.CSharp.Syntax.WhenClauseSyntax? whenClause);
member this.WithWhenClause : Microsoft.CodeAnalysis.CSharp.Syntax.WhenClauseSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.SwitchExpressionArmSyntax
Public Function WithWhenClause (whenClause As WhenClauseSyntax) As SwitchExpressionArmSyntax

Parameters

whenClause
WhenClauseSyntax

Returns

Applies to