CodeGenerator::ValidateIdentifier Method (String^)

 

Throws an exception if the specified string is not a valid identifier.

Namespace:   System.CodeDom.Compiler
Assembly:  System (in System.dll)

protected:
virtual void ValidateIdentifier(
	String^ value
)

Parameters

value
Type: System::String^

The identifier to test for validity as an identifier.

Exception Condition
ArgumentException

If the specified identifier is invalid or conflicts with reserved or language keywords.

.NET Framework
Available since 1.1
Return to top
Show: