Type '<typename>' and partial type '<typename>' declared in '<filename>' conflict in container '<containername>', but are being merged because one of them is declared partial

A class or structure is appears in multiple definitions in the same container type, and more than one definition is not marked Partial.

You must use the Partial keyword on at least one of the multiple definitions of a class or structure, but it is recommended that you use it on all the partial definitions.

By default, this message is a warning. For information on hiding warnings or treating warnings as errors, see Configuring Warnings in Visual Basic.

Error ID: BC40047

To correct this error

  • Use the Partial keyword on every partial definition of the class or structure.