Share via


SyntaxFactory.SingleLineElseClause Method

Definition

Overloads

SingleLineElseClause()

Represents the "Else ..." clause of a single-line "If" statement.

SingleLineElseClause(SyntaxList<StatementSyntax>)

Represents the "Else ..." clause of a single-line "If" statement.

SingleLineElseClause(SyntaxToken, SyntaxList<StatementSyntax>)

Represents the "Else ..." clause of a single-line "If" statement.

SingleLineElseClause()

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 the "Else ..." clause of a single-line "If" statement.

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::SingleLineElseClauseSyntax ^ SingleLineElseClause();
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.SingleLineElseClauseSyntax SingleLineElseClause ();
static member SingleLineElseClause : unit -> Microsoft.CodeAnalysis.VisualBasic.Syntax.SingleLineElseClauseSyntax
Public Shared Function SingleLineElseClause () As SingleLineElseClauseSyntax

Returns

Applies to

SingleLineElseClause(SyntaxList<StatementSyntax>)

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 the "Else ..." clause of a single-line "If" statement.

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::SingleLineElseClauseSyntax ^ SingleLineElseClause(Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::StatementSyntax ^> statements);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.SingleLineElseClauseSyntax SingleLineElseClause (Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.StatementSyntax> statements);
static member SingleLineElseClause : Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.StatementSyntax> -> Microsoft.CodeAnalysis.VisualBasic.Syntax.SingleLineElseClauseSyntax
Public Shared Function SingleLineElseClause (statements As SyntaxList(Of StatementSyntax)) As SingleLineElseClauseSyntax

Parameters

statements
SyntaxList<StatementSyntax>

A list of statements to be executed. Multiple statements must be separated by colons.

Returns

Applies to

SingleLineElseClause(SyntaxToken, SyntaxList<StatementSyntax>)

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 the "Else ..." clause of a single-line "If" statement.

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::SingleLineElseClauseSyntax ^ SingleLineElseClause(Microsoft::CodeAnalysis::SyntaxToken elseKeyword, Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::StatementSyntax ^> statements);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.SingleLineElseClauseSyntax SingleLineElseClause (Microsoft.CodeAnalysis.SyntaxToken elseKeyword, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.StatementSyntax> statements);
static member SingleLineElseClause : Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.StatementSyntax> -> Microsoft.CodeAnalysis.VisualBasic.Syntax.SingleLineElseClauseSyntax
Public Shared Function SingleLineElseClause (elseKeyword As SyntaxToken, statements As SyntaxList(Of StatementSyntax)) As SingleLineElseClauseSyntax

Parameters

elseKeyword
SyntaxToken

The "Else" keyword.

statements
SyntaxList<StatementSyntax>

A list of statements to be executed. Multiple statements must be separated by colons.

Returns

Applies to