CodeGenerator.ValidateIdentifier(String) Método

Definição

Gera uma exceção se a cadeia de caracteres especificada não é um identificador válido.Throws an exception if the specified string is not a valid identifier.

protected:
 virtual void ValidateIdentifier(System::String ^ value);
protected virtual void ValidateIdentifier (string value);
abstract member ValidateIdentifier : string -> unit
override this.ValidateIdentifier : string -> unit
Protected Overridable Sub ValidateIdentifier (value As String)

Parâmetros

value
String

O identificador para testar quanto à validade enquanto um identificador.The identifier to test for validity as an identifier.

Exceções

Se o identificador especificado é inválido ou está em conflito com palavras-chave reservadas ou de linguagem.If the specified identifier is invalid or conflicts with reserved or language keywords.

Aplica-se a