Share via


VBCodeParser.MapDirective Method

Maps a given directive.

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

Syntax

'Declaration
Protected Sub MapDirective ( _
    directive As String, _
    action As Func(Of Boolean) _
)
'Usage
Dim directive As String 
Dim action As Func(Of Boolean)

Me.MapDirective(directive, action)
protected void MapDirective(
    string directive,
    Func<bool> action
)
protected:
void MapDirective(
    String^ directive, 
    Func<bool>^ action
)
member MapDirective : 
        directive:string * 
        action:Func<bool> -> unit
protected function MapDirective(
    directive : String, 
    action : Func<boolean>
)

Parameters

See Also

Reference

VBCodeParser Class

System.Web.Razor.Parser Namespace