Export (0) Print
Expand All
Cut
Run
Expand Minimize

IsValidID Method (General Extensibility)

Visual Studio .NET 2003

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

[Visual Basic .NET]
Public Function IsValidID( _
   Name As String _
) As Boolean
[Visual Basic 6]
Function IsValidID( _
   Name As String _
) As Boolean
[C++]
HRESULT __stdcall IsValidID(
   BSTR Name,
   /* [out, retval] */ VARIANT_BOOL* retVal
);
[C#]
bool IsValidID(
   string Name
);
[JScript .NET]
public function IsValidID(
   Name : String
) : Boolean

Parameters

Name
Required. The name of the identifier to check.

Return Value

True when the identifier is valid; False when it is not, such as if it is a keyword.

See Also

Applies To: CodeModel Object | VCCodeModel Object

Show:
© 2014 Microsoft