Share via


VBCodeParser.EndTerminatedDirective Method

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Ends a terminated directive.

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

Syntax

'Declaration
Protected Overridable Function EndTerminatedDirective ( _
    directive As String, _
    blockType As BlockType, _
    codeGenerator As SpanCodeGenerator, _
    allowMarkup As Boolean _
) As Func(Of Boolean)
'Usage
Dim directive As String 
Dim blockType As BlockType 
Dim codeGenerator As SpanCodeGenerator 
Dim allowMarkup As Boolean 
Dim returnValue As Func(Of Boolean)

returnValue = Me.EndTerminatedDirective(directive, _
    blockType, codeGenerator, allowMarkup)
protected virtual Func<bool> EndTerminatedDirective(
    string directive,
    BlockType blockType,
    SpanCodeGenerator codeGenerator,
    bool allowMarkup
)
protected:
virtual Func<bool>^ EndTerminatedDirective(
    String^ directive, 
    BlockType blockType, 
    SpanCodeGenerator^ codeGenerator, 
    bool allowMarkup
)
abstract EndTerminatedDirective : 
        directive:string * 
        blockType:BlockType * 
        codeGenerator:SpanCodeGenerator * 
        allowMarkup:bool -> Func<bool> 
override EndTerminatedDirective : 
        directive:string * 
        blockType:BlockType * 
        codeGenerator:SpanCodeGenerator * 
        allowMarkup:bool -> Func<bool> 
protected function EndTerminatedDirective(
    directive : String, 
    blockType : BlockType, 
    codeGenerator : SpanCodeGenerator, 
    allowMarkup : boolean
) : Func<boolean>

Parameters

  • allowMarkup
    Type: System.Boolean
    true to allow markup; otherwise, false.

Return Value

Type: System.Func<Boolean>
The function that ends the terminated directive.

See Also

Reference

VBCodeParser Class

System.Web.Razor.Parser Namespace