VBCodeParser.Required Method (VBSymbolType, String)

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

Determines whether the expected symbol is required.

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

'Declaration
Protected Function Required ( _
	expected As VBSymbolType, _
	errorBase As String _
) As Boolean
'Usage
Dim expected As VBSymbolType 
Dim errorBase As String 
Dim returnValue As Boolean 

returnValue = Me.Required(expected, _
	errorBase)

Parameters

expected
Type: System.Web.Razor.Tokenizer.Symbols.VBSymbolType
The expected symbol.
errorBase
Type: System.String
The error base.

Return Value

Type: System.Boolean
true if the expected symbol is required; otherwise, false.
Show: