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)
Syntax
'Declaration
Function IsValidID ( _
Name As String _
) As Boolean
bool IsValidID(
string Name
)
bool IsValidID(
String^ Name
)
abstract IsValidID :
Name:string -> bool
function IsValidID(
Name : String
) : boolean
Parameters
- 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.
Implements
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.VisualStudio.VCCodeModel Namespace
Other Resources
How to: Compile and Run the Automation Object Model Code Examples