or the definition of an interface through which interop calls will be made
That talks about a COM interface. The attribute has to be applied to the interface declaration to be effective. Do note how hard that is to get, COM interfaces are normally declared in the interop library that's generated by Tlbimp.exe. Which is missing an option to auto-generate the attribute. Realistically, you can only do this if you declare the interfaces yourself.