VCCodeModel.IsValidID Method (String)


Returns whether a specified name is a valid programmatic identifier for the current language.

Namespace:   Microsoft.VisualStudio.VCCodeModel
Assembly:  Microsoft.VisualStudio.VCCodeModel (in Microsoft.VisualStudio.VCCodeModel.dll)

bool IsValidID(
	string Name


Type: System.String

Required. The name of the identifier to check.

Return Value

Type: System.Boolean

true when the identifier is valid; false when it is not, such as if it is a keyword.

Return to top