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

声明
Function ValidateIdentifier ( _
    bstrIdentifier As String _
) As Boolean
用法
Dim instance As VCLanguageManager
Dim bstrIdentifier As String
Dim returnValue As Boolean

returnValue = instance.ValidateIdentifier(bstrIdentifier)
bool ValidateIdentifier(
    string bstrIdentifier
)
bool ValidateIdentifier(
    [InAttribute] String^ bstrIdentifier
)
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.

Permissions

See Also

Reference

VCLanguageManager Interface

VCLanguageManager Members

Microsoft.VisualStudio.VCCodeModel Namespace