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.StringThe identifier whose validity you want to determine.
Return Value
Type: System.Boolean
true if the identifier is valid; otherwise, false.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.VisualStudio.Tools.Applications.ProgrammingModel Namespace