共用方式為


ConditionalExpressionSyntax.WithWhenTrue(ExpressionSyntax) 方法

定義

public:
 Microsoft::CodeAnalysis::CSharp::Syntax::ConditionalExpressionSyntax ^ WithWhenTrue(Microsoft::CodeAnalysis::CSharp::Syntax::ExpressionSyntax ^ whenTrue);
public Microsoft.CodeAnalysis.CSharp.Syntax.ConditionalExpressionSyntax WithWhenTrue (Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax whenTrue);
member this.WithWhenTrue : Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.ConditionalExpressionSyntax
Public Function WithWhenTrue (whenTrue As ExpressionSyntax) As ConditionalExpressionSyntax

參數

whenTrue
ExpressionSyntax

傳回

適用於