Share via


SyntaxFactory.TernaryConditionalExpression Method

Definition

Overloads

TernaryConditionalExpression(ExpressionSyntax, ExpressionSyntax, ExpressionSyntax)

Represents a conditional expression, If(condition, true-expr, false-expr) or If(expr, nothing-expr).

TernaryConditionalExpression(SyntaxToken, SyntaxToken, ExpressionSyntax, SyntaxToken, ExpressionSyntax, SyntaxToken, ExpressionSyntax, SyntaxToken)

Represents a conditional expression, If(condition, true-expr, false-expr) or If(expr, nothing-expr).

TernaryConditionalExpression(ExpressionSyntax, ExpressionSyntax, ExpressionSyntax)

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

Represents a conditional expression, If(condition, true-expr, false-expr) or If(expr, nothing-expr).

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::TernaryConditionalExpressionSyntax ^ TernaryConditionalExpression(Microsoft::CodeAnalysis::VisualBasic::Syntax::ExpressionSyntax ^ condition, Microsoft::CodeAnalysis::VisualBasic::Syntax::ExpressionSyntax ^ whenTrue, Microsoft::CodeAnalysis::VisualBasic::Syntax::ExpressionSyntax ^ whenFalse);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.TernaryConditionalExpressionSyntax TernaryConditionalExpression (Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax condition, Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax whenTrue, Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax whenFalse);
static member TernaryConditionalExpression : Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax * Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax * Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.TernaryConditionalExpressionSyntax
Public Shared Function TernaryConditionalExpression (condition As ExpressionSyntax, whenTrue As ExpressionSyntax, whenFalse As ExpressionSyntax) As TernaryConditionalExpressionSyntax

Parameters

condition
ExpressionSyntax

The first expression inside the parentheses.

whenTrue
ExpressionSyntax

The second expression inside the parentheses.

whenFalse
ExpressionSyntax

The second expression inside the parentheses.

Returns

Applies to

TernaryConditionalExpression(SyntaxToken, SyntaxToken, ExpressionSyntax, SyntaxToken, ExpressionSyntax, SyntaxToken, ExpressionSyntax, SyntaxToken)

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

Represents a conditional expression, If(condition, true-expr, false-expr) or If(expr, nothing-expr).

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::TernaryConditionalExpressionSyntax ^ TernaryConditionalExpression(Microsoft::CodeAnalysis::SyntaxToken ifKeyword, Microsoft::CodeAnalysis::SyntaxToken openParenToken, Microsoft::CodeAnalysis::VisualBasic::Syntax::ExpressionSyntax ^ condition, Microsoft::CodeAnalysis::SyntaxToken firstCommaToken, Microsoft::CodeAnalysis::VisualBasic::Syntax::ExpressionSyntax ^ whenTrue, Microsoft::CodeAnalysis::SyntaxToken secondCommaToken, Microsoft::CodeAnalysis::VisualBasic::Syntax::ExpressionSyntax ^ whenFalse, Microsoft::CodeAnalysis::SyntaxToken closeParenToken);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.TernaryConditionalExpressionSyntax TernaryConditionalExpression (Microsoft.CodeAnalysis.SyntaxToken ifKeyword, Microsoft.CodeAnalysis.SyntaxToken openParenToken, Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax condition, Microsoft.CodeAnalysis.SyntaxToken firstCommaToken, Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax whenTrue, Microsoft.CodeAnalysis.SyntaxToken secondCommaToken, Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax whenFalse, Microsoft.CodeAnalysis.SyntaxToken closeParenToken);
static member TernaryConditionalExpression : Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax * Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.VisualBasic.Syntax.TernaryConditionalExpressionSyntax
Public Shared Function TernaryConditionalExpression (ifKeyword As SyntaxToken, openParenToken As SyntaxToken, condition As ExpressionSyntax, firstCommaToken As SyntaxToken, whenTrue As ExpressionSyntax, secondCommaToken As SyntaxToken, whenFalse As ExpressionSyntax, closeParenToken As SyntaxToken) As TernaryConditionalExpressionSyntax

Parameters

ifKeyword
SyntaxToken

The "If" keyword

openParenToken
SyntaxToken

The "(" token

condition
ExpressionSyntax

The first expression inside the parentheses.

firstCommaToken
SyntaxToken

The "," token.

whenTrue
ExpressionSyntax

The second expression inside the parentheses.

secondCommaToken
SyntaxToken

The "," token.

whenFalse
ExpressionSyntax

The second expression inside the parentheses.

closeParenToken
SyntaxToken

The ")" token

Returns

Applies to