Export (0) Print
Expand All

TokenizerBackedParser<TTokenizer, TSymbol, TSymbolType>.Required Method

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

Determines whether the expected token is required.

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

protected internal bool Required(
	TSymbolType expected,
	bool errorIfNotFound,
	string errorBase
)

Parameters

expected
Type: TSymbolType
The expected token.
errorIfNotFound
Type: System.Boolean
true to display an error if not found; otherwise, false.
errorBase
Type: System.String
The error base.

Return Value

Type: System.Boolean
true if the expected token is required; otherwise, false.
Show:
© 2014 Microsoft