VCCodeModel.IsValidID(String) Method

Definition

Returns whether a specified name is a valid programmatic identifier for the current language.

public:
 bool IsValidID(System::String ^ Name);
public:
 bool IsValidID(Platform::String ^ Name);
bool IsValidID(std::wstring const & Name);
[System.Runtime.InteropServices.DispId(16)]
public bool IsValidID (string Name);
[<System.Runtime.InteropServices.DispId(16)>]
abstract member IsValidID : string -> bool
Public Function IsValidID (Name As String) As Boolean

Parameters

Name
String

Required. The name of the identifier to check.

Returns

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

Implements

Attributes

Applies to