Share via


SyntaxFactory.ExitStatement Method

Definition

Overloads

ExitStatement(SyntaxKind, SyntaxToken)

An exit statement. The kind of block being exited can be found by examining the Kind.

ExitStatement(SyntaxKind, SyntaxToken, SyntaxToken)

An exit statement. The kind of block being exited can be found by examining the Kind.

ExitStatement(SyntaxKind, 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

An exit statement. The kind of block being exited can be found by examining the Kind.

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::ExitStatementSyntax ^ ExitStatement(Microsoft::CodeAnalysis::VisualBasic::SyntaxKind kind, Microsoft::CodeAnalysis::SyntaxToken blockKeyword);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.ExitStatementSyntax ExitStatement (Microsoft.CodeAnalysis.VisualBasic.SyntaxKind kind, Microsoft.CodeAnalysis.SyntaxToken blockKeyword);
static member ExitStatement : Microsoft.CodeAnalysis.VisualBasic.SyntaxKind * Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.VisualBasic.Syntax.ExitStatementSyntax
Public Shared Function ExitStatement (kind As SyntaxKind, blockKeyword As SyntaxToken) As ExitStatementSyntax

Parameters

kind
SyntaxKind

A SyntaxKind representing the specific kind of ExitStatementSyntax. One of ExitDoStatement, ExitForStatement, ExitSubStatement, ExitFunctionStatement, ExitOperatorStatement, ExitPropertyStatement, ExitTryStatement, ExitSelectStatement, ExitWhileStatement.

blockKeyword
SyntaxToken

The keyword describing the block to exit.

Returns

Applies to

ExitStatement(SyntaxKind, SyntaxToken, 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

An exit statement. The kind of block being exited can be found by examining the Kind.

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::ExitStatementSyntax ^ ExitStatement(Microsoft::CodeAnalysis::VisualBasic::SyntaxKind kind, Microsoft::CodeAnalysis::SyntaxToken exitKeyword, Microsoft::CodeAnalysis::SyntaxToken blockKeyword);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.ExitStatementSyntax ExitStatement (Microsoft.CodeAnalysis.VisualBasic.SyntaxKind kind, Microsoft.CodeAnalysis.SyntaxToken exitKeyword, Microsoft.CodeAnalysis.SyntaxToken blockKeyword);
static member ExitStatement : Microsoft.CodeAnalysis.VisualBasic.SyntaxKind * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.VisualBasic.Syntax.ExitStatementSyntax
Public Shared Function ExitStatement (kind As SyntaxKind, exitKeyword As SyntaxToken, blockKeyword As SyntaxToken) As ExitStatementSyntax

Parameters

kind
SyntaxKind

A SyntaxKind representing the specific kind of ExitStatementSyntax. One of ExitDoStatement, ExitForStatement, ExitSubStatement, ExitFunctionStatement, ExitOperatorStatement, ExitPropertyStatement, ExitTryStatement, ExitSelectStatement, ExitWhileStatement.

exitKeyword
SyntaxToken

The "Exit" keyword.

blockKeyword
SyntaxToken

The keyword describing the block to exit.

Returns

Applies to