Udostępnij za pośrednictwem


'InterfaceId' and 'EventsId' parameters for 'Microsoft.VisualBasic.ComClassAttribute' on '<typename>' cannot have the same value

A COMClassAttribute attribute block specifies the same globally unique identifier (GUID) for the interface as for the creation event. If these identifiers are both supplied, they must be different. They must also be different from the class identifier.

A GUID consists of 16 bytes, of which the first eight are numeric and the last eight are binary. It is generated by Microsoft utilities such as uuidgen.exe and is guaranteed to be unique.

Error ID: BC32507

To correct this error

  1. Determine the correct GUIDs necessary to identify the interface and creation event for the COM object.

  2. Ensure that the GUID strings presented to the COMClassAttribute attribute block are copied correctly.

See Also

Concepts

Attributes Used in Visual Basic

Application of Attributes

Reference

ComClassAttribute Class