VCCodeModel.IsValidID Method

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: String

    Required. The name of the identifier to check.

Return Value

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

.NET Framework Security

See Also

Reference

VCCodeModel Interface

Microsoft.VisualStudio.VCCodeModel Namespace

Other Resources

How to: Compile and Run the Automation Object Model Code Examples