Share via


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)

Syntax

'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)
protected bool Required(
    VBSymbolType expected,
    string errorBase
)
protected:
bool Required(
    VBSymbolType expected, 
    String^ errorBase
)
member Required : 
        expected:VBSymbolType * 
        errorBase:string -> bool
protected function Required(
    expected : VBSymbolType, 
    errorBase : String
) : boolean

Parameters

Return Value

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

See Also

Reference

VBCodeParser Class

Required Overload

System.Web.Razor.Parser Namespace