Share via


SyntaxFactory.EndBlockStatement Method

Definition

Overloads

EndBlockStatement(SyntaxKind, SyntaxToken)

Represents an "End XXX" statement, where XXX is a single keyword.

EndBlockStatement(SyntaxKind, SyntaxToken, SyntaxToken)

Represents an "End XXX" statement, where XXX is a single keyword.

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

Represents an "End XXX" statement, where XXX is a single keyword.

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

Parameters

kind
SyntaxKind

A SyntaxKind representing the specific kind of EndBlockStatementSyntax. One of EndIfStatement, EndUsingStatement, EndWithStatement, EndSelectStatement, EndStructureStatement, EndEnumStatement, EndInterfaceStatement, EndClassStatement, EndModuleStatement, EndNamespaceStatement, EndSubStatement, EndFunctionStatement, EndGetStatement, EndSetStatement, EndPropertyStatement, EndOperatorStatement, EndEventStatement, EndAddHandlerStatement, EndRemoveHandlerStatement, EndRaiseEventStatement, EndWhileStatement, EndTryStatement, EndSyncLockStatement.

blockKeyword
SyntaxToken

The keyword that ends the block. Must be one of: "If", "Using", "With", "Select", "Structure", "Enum", "Interface", "Class", "Module", "Namespace", "Sub", "Function", "Get, "Set", "Property", "Operator", "Event", "AddHandler", "RemoveHandler", "RaiseEvent", "While", "Try" or "SyncLock".

Returns

Applies to

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

Represents an "End XXX" statement, where XXX is a single keyword.

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

Parameters

kind
SyntaxKind

A SyntaxKind representing the specific kind of EndBlockStatementSyntax. One of EndIfStatement, EndUsingStatement, EndWithStatement, EndSelectStatement, EndStructureStatement, EndEnumStatement, EndInterfaceStatement, EndClassStatement, EndModuleStatement, EndNamespaceStatement, EndSubStatement, EndFunctionStatement, EndGetStatement, EndSetStatement, EndPropertyStatement, EndOperatorStatement, EndEventStatement, EndAddHandlerStatement, EndRemoveHandlerStatement, EndRaiseEventStatement, EndWhileStatement, EndTryStatement, EndSyncLockStatement.

endKeyword
SyntaxToken

The "End" keyword

blockKeyword
SyntaxToken

The keyword that ends the block. Must be one of: "If", "Using", "With", "Select", "Structure", "Enum", "Interface", "Class", "Module", "Namespace", "Sub", "Function", "Get, "Set", "Property", "Operator", "Event", "AddHandler", "RemoveHandler", "RaiseEvent", "While", "Try" or "SyncLock".

Returns

Applies to