Partager via


VCLanguageManager.ValidateIdentifier Method

Determines if the specified name is a valid C++ identifier.

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

Syntax

'Declaration
Function ValidateIdentifier ( _
    bstrIdentifier As String _
) As Boolean
bool ValidateIdentifier(
    string bstrIdentifier
)
bool ValidateIdentifier(
    [InAttribute] String^ bstrIdentifier
)
abstract ValidateIdentifier : 
        bstrIdentifier:string -> bool
function ValidateIdentifier(
    bstrIdentifier : String
) : boolean

Parameters

  • bstrIdentifier
    Type: System.String

    Required. The identifier to be validated.

Return Value

Type: System.Boolean
true if the specified name is a valid C++ identifier; otherwise, false.

.NET Framework Security

See Also

Reference

VCLanguageManager Interface

Microsoft.VisualStudio.VCCodeModel Namespace