CSharpCodeParser.TryGetDirectiveHandler Method

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

Gets a directive handler.

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

Syntax

'Declaration
Protected Function TryGetDirectiveHandler ( _
    directive As String, _
    <OutAttribute> ByRef handler As Action _
) As Boolean
'Usage
Dim directive As String 
Dim handler As Action 
Dim returnValue As Boolean 

returnValue = Me.TryGetDirectiveHandler(directive, _
    handler)
protected bool TryGetDirectiveHandler(
    string directive,
    out Action handler
)
protected:
bool TryGetDirectiveHandler(
    String^ directive, 
    [OutAttribute] Action^% handler
)
member TryGetDirectiveHandler : 
        directive:string * 
        handler:Action byref -> bool
protected function TryGetDirectiveHandler(
    directive : String, 
    handler : Action
) : boolean

Parameters

Return Value

Type: System.Boolean
true if successful; otherwise, false.

See Also

Reference

CSharpCodeParser Class

System.Web.Razor.Parser Namespace