IdentifierUtility.IsValidIdentifier Method

Returns a value indicating whether the identifier is valid in the current language and context.

Namespace:  Microsoft.VisualStudio.Tools.Applications.ProgrammingModel
Assembly:  Microsoft.VisualStudio.Tools.Applications.ProgrammingModel (in Microsoft.VisualStudio.Tools.Applications.ProgrammingModel.dll)

Syntax

'Declaration
Public Function IsValidIdentifier ( _
    identifier As String _
) As Boolean
'Usage
Dim instance As IdentifierUtility 
Dim identifier As String 
Dim returnValue As Boolean 

returnValue = instance.IsValidIdentifier(identifier)
public bool IsValidIdentifier(
    string identifier
)
public:
bool IsValidIdentifier(
    String^ identifier
)
public function IsValidIdentifier(
    identifier : String
) : boolean

Parameters

  • identifier
    Type: System.String

    The identifier whose validity you want to determine.

Return Value

Type: System.Boolean
true if the identifier is valid; otherwise, false.

.NET Framework Security

See Also

Reference

IdentifierUtility Class

IdentifierUtility Members

Microsoft.VisualStudio.Tools.Applications.ProgrammingModel Namespace