Share via


ParserHelpers.IsIdentifier Method (String, Boolean)

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Determines whether the specified string value is an identifier.

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

Syntax

'Declaration
Public Shared Function IsIdentifier ( _
    value As String, _
    requireIdentifierStart As Boolean _
) As Boolean
'Usage
Dim value As String 
Dim requireIdentifierStart As Boolean 
Dim returnValue As Boolean 

returnValue = ParserHelpers.IsIdentifier(value, _
    requireIdentifierStart)
public static bool IsIdentifier(
    string value,
    bool requireIdentifierStart
)
public:
static bool IsIdentifier(
    String^ value, 
    bool requireIdentifierStart
)
static member IsIdentifier : 
        value:string * 
        requireIdentifierStart:bool -> bool
public static function IsIdentifier(
    value : String, 
    requireIdentifierStart : boolean
) : boolean

Parameters

  • requireIdentifierStart
    Type: System.Boolean
    true to require that the identifier starts with a letter or underscore (_); otherwise, false.

Return Value

Type: System.Boolean
true if the specified string value is an identifier; otherwise, false.

See Also

Reference

ParserHelpers Class

IsIdentifier Overload

System.Web.Razor.Parser Namespace