Version

TryGetLexerState Method

Tries to get a LexerState with the specified name and returns whether one is in the collection.
Syntax
'Declaration
 
Public Function TryGetLexerState( _
   ByVal name As String, _
   ByRef lexerState As LexerState _
) As Boolean
public bool TryGetLexerState( 
   string name,
   out LexerState lexerState
)

Parameters

name
The name of the lexer state to find in the collection, case-insensitively.
lexerState
[Out] Contains the lexer state with the specified name or null if no lexer state has the name specified.
Exceptions
ExceptionDescription
System.ArgumentNullExceptionOccurs when name is null or empty.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also