TernaryConditionalExpressionSyntax.WithWhenFalse(ExpressionSyntax) 方法

定义

返回一个副本,其中 WhenFalse 属性已更改为指定值。 如果指定的值与当前值相同,则返回此实例。

public:
 Microsoft::CodeAnalysis::VisualBasic::Syntax::TernaryConditionalExpressionSyntax ^ WithWhenFalse(Microsoft::CodeAnalysis::VisualBasic::Syntax::ExpressionSyntax ^ whenFalse);
public Microsoft.CodeAnalysis.VisualBasic.Syntax.TernaryConditionalExpressionSyntax WithWhenFalse (Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax whenFalse);
member this.WithWhenFalse : Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.TernaryConditionalExpressionSyntax
Public Function WithWhenFalse (whenFalse As ExpressionSyntax) As TernaryConditionalExpressionSyntax

参数

whenFalse
ExpressionSyntax

返回

适用于