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)

'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)

Parameters

directive
Type: System.String
The directive.
handler
Type: System.Action
The handler.

Return Value

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