CSharpCodeParser.AcceptIf Method

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

Determines whether the parser accepts the ‘IF’ keyword.

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

'Declaration
Protected Friend Function AcceptIf ( _
	keyword As CSharpKeyword _
) As Boolean
'Usage
Dim keyword As CSharpKeyword 
Dim returnValue As Boolean 

returnValue = Me.AcceptIf(keyword)

Parameters

keyword
Type: System.Web.Razor.Tokenizer.Symbols.CSharpKeyword
The keyword to accept.

Return Value

Type: System.Boolean
true if the parser accepts the ‘IF’ keyword; otherwise, false.
Show: