Udostępnij za pośrednictwem


Type characters are not allowed on Imports aliases

An import alias in an Imports statement contains at least one identifier type character.

An import alias must be a valid Visual Basic name. The allowed characters do not include any of the identifier type characters (%, &, @, !, #, and $). See Declared Element Names.

Error ID: BC31398

To correct this error

  • Remove the type identifier character or characters from the import alias.

See Also

Concepts

Type Characters

Declared Element Names

Resolving a Reference When Multiple Variables Have the Same Name

Reference

Imports Statement (.NET Namespace and Type)