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)

protected bool TryGetDirectiveHandler(
	string directive,
	out Action 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: