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
- directive
Type: System.String
The directive.
- action
Type: System.Func<Boolean>
The action whether to map a given directive.