Share via


SyntaxFactory.ConditionalAccessExpression Method

Definition

Overloads

ConditionalAccessExpression(ExpressionSyntax, SyntaxToken, ExpressionSyntax)

ExpressionSyntax node representing the object conditionally accessed.

ConditionalAccessExpression(ExpressionSyntax, ExpressionSyntax)

ExpressionSyntax node representing the object conditionally accessed.

ConditionalAccessExpression(ExpressionSyntax)

ExpressionSyntax node representing the object conditionally accessed.

ConditionalAccessExpression(ExpressionSyntax, SyntaxToken, 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

ExpressionSyntax node representing the object conditionally accessed.

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::ConditionalAccessExpressionSyntax ^ ConditionalAccessExpression(Microsoft::CodeAnalysis::VisualBasic::Syntax::ExpressionSyntax ^ expression, Microsoft::CodeAnalysis::SyntaxToken questionMarkToken, Microsoft::CodeAnalysis::VisualBasic::Syntax::ExpressionSyntax ^ whenNotNull);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.ConditionalAccessExpressionSyntax ConditionalAccessExpression (Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax expression, Microsoft.CodeAnalysis.SyntaxToken questionMarkToken, Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax whenNotNull);
static member ConditionalAccessExpression : Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.ConditionalAccessExpressionSyntax
Public Shared Function ConditionalAccessExpression (expression As ExpressionSyntax, questionMarkToken As SyntaxToken, whenNotNull As ExpressionSyntax) As ConditionalAccessExpressionSyntax

Parameters

expression
ExpressionSyntax

The expression on the left-hand-side of the "?".

questionMarkToken
SyntaxToken

"?" token.

whenNotNull
ExpressionSyntax

ExpressionSyntax node representing the access expression to be executed when the object is not null."

Returns

Applies to

ConditionalAccessExpression(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

ExpressionSyntax node representing the object conditionally accessed.

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::ConditionalAccessExpressionSyntax ^ ConditionalAccessExpression(Microsoft::CodeAnalysis::VisualBasic::Syntax::ExpressionSyntax ^ expression, Microsoft::CodeAnalysis::VisualBasic::Syntax::ExpressionSyntax ^ whenNotNull);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.ConditionalAccessExpressionSyntax ConditionalAccessExpression (Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax expression, Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax whenNotNull);
static member ConditionalAccessExpression : Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax * Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.ConditionalAccessExpressionSyntax
Public Shared Function ConditionalAccessExpression (expression As ExpressionSyntax, whenNotNull As ExpressionSyntax) As ConditionalAccessExpressionSyntax

Parameters

expression
ExpressionSyntax

The expression on the left-hand-side of the "?".

whenNotNull
ExpressionSyntax

ExpressionSyntax node representing the access expression to be executed when the object is not null."

Returns

Applies to

ConditionalAccessExpression(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

ExpressionSyntax node representing the object conditionally accessed.

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::ConditionalAccessExpressionSyntax ^ ConditionalAccessExpression(Microsoft::CodeAnalysis::VisualBasic::Syntax::ExpressionSyntax ^ whenNotNull);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.ConditionalAccessExpressionSyntax ConditionalAccessExpression (Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax whenNotNull);
static member ConditionalAccessExpression : Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.ConditionalAccessExpressionSyntax
Public Shared Function ConditionalAccessExpression (whenNotNull As ExpressionSyntax) As ConditionalAccessExpressionSyntax

Parameters

whenNotNull
ExpressionSyntax

ExpressionSyntax node representing the access expression to be executed when the object is not null."

Returns

Applies to