Share via


VBCodeParser.KeywordTerminatedStatement Method

Indicates a keyword that terminates a statement.

Namespace:  System.Web.Razor.Parser
Assembly:  System.Web.Razor (in System.Web.Razor.dll)

Syntax

'Declaration
Protected Overridable Function KeywordTerminatedStatement ( _
    start As VBKeyword, _
    terminator As VBKeyword, _
    supportsExit As Boolean, _
    supportsContinue As Boolean _
) As Func(Of Boolean)
'Usage
Dim start As VBKeyword 
Dim terminator As VBKeyword 
Dim supportsExit As Boolean 
Dim supportsContinue As Boolean 
Dim returnValue As Func(Of Boolean)

returnValue = Me.KeywordTerminatedStatement(start, _
    terminator, supportsExit, supportsContinue)
protected virtual Func<bool> KeywordTerminatedStatement(
    VBKeyword start,
    VBKeyword terminator,
    bool supportsExit,
    bool supportsContinue
)
protected:
virtual Func<bool>^ KeywordTerminatedStatement(
    VBKeyword start, 
    VBKeyword terminator, 
    bool supportsExit, 
    bool supportsContinue
)
abstract KeywordTerminatedStatement : 
        start:VBKeyword * 
        terminator:VBKeyword * 
        supportsExit:bool * 
        supportsContinue:bool -> Func<bool> 
override KeywordTerminatedStatement : 
        start:VBKeyword * 
        terminator:VBKeyword * 
        supportsExit:bool * 
        supportsContinue:bool -> Func<bool> 
protected function KeywordTerminatedStatement(
    start : VBKeyword, 
    terminator : VBKeyword, 
    supportsExit : boolean, 
    supportsContinue : boolean
) : Func<boolean>

Parameters

  • supportsExit
    Type: System.Boolean
    true if the termination supports exit; otherwise, false.
  • supportsContinue
    Type: System.Boolean
    true if the termination supports continue; otherwise, false.

Return Value

Type: System.Func<Boolean>
The function that terminates the statement.

See Also

Reference

VBCodeParser Class

System.Web.Razor.Parser Namespace