Udostępnij za pośrednictwem


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

CodeModel2.IsValidID(String)

.NET Framework Security

See Also

Reference

VCCodeModel Interface

IsValidID Overload

Microsoft.VisualStudio.VCCodeModel Namespace

Other Resources

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