Conflict between the default property and the 'DefaultMemberAttribute' defined on '|1'

A class, structure, or interface declares a default property with the Default (Visual Basic) keyword but also applies the DefaultMemberAttribute to designate a different member as the default member.

A type can have at most one default member. When you declare a default property, Visual Basic automatically applies the DefaultMemberAttribute to the class, structure, or interface designating that property.

Error ID: BC32304

To correct this error

  1. Decide which member should be the default member of the class, structure, or interface.

  2. Remove the conflicting declaration (either the Default keyword or the DefaultMemberAttribute).

See Also

Tasks

How to: Declare and Call a Default Property in Visual Basic

Concepts

Default Properties

Reference

Default (Visual Basic)

DefaultMemberAttribute