Partilhar via


Como: Alterar o Namespace para um aplicativo (Visual Basic)

The Root Namespace property sets the base namespace for all files in the project. For example, if you set the root namespace to Project1, and you have a Class1 outside of any namespace in your code, its namespace would be Project1.Class1. If you have a Class2 within a namespace Order in code, its namespace would be Project1.Order.Class2.

It is also possible to clear the Root Namespace property, which allows you to manually specify the namespace structure of your project. For more information, see Instrução Namespace.

To change the namespace for a project

  1. Com um projeto selecionado no Solution Explorerdiante do projeto menu, clique em Propriedades.

  2. Click the Application tab.

  3. In the Root namespace field, enter the name.

Consulte também

Referência

Instrução Namespace

Outros recursos

Gerenciando propriedades Application