CodeModel::IsValidID Method (String^)
Visual Studio 2015
Returns whether a specified name is a valid programmatic identifier for the current language.
Assembly: EnvDTE (in EnvDTE.dll)
Parameters
- Name
-
Type:
System::String^
Required. The name of the identifier to check.
Return Value
Type: System::BooleanA Boolean value indicating True when the identifier is valid; False when it is not, such as when it is a keyword.
Note |
|---|
The values of code model elements such as classes, structs, functions, attributes, delegates, and so forth can be non-deterministic after making certain kinds of edits, meaning that their values cannot be relied upon to always remain the same. For more information, see the section Code Model Element Values Can Change in Discovering Code by Using the Code Model (Visual Basic). |
Show:
