Hey everybody,
The Add-In Model API is documented with Visual Basic syntax and has
Variant parameters all the way through.
The Object Model documentation uses C-style syntax, and there are
variants here and there in that as well.
The problem is that
Variant is no longer a supported type in .NET. It hasn't been for years.
So if you create an Add-In in Visual Basic and painstakingly copy in all the operations from the documentation, your code won't compile. You get any number of
BC30804s.
There's a simple fix -- replace
Variant with
Object -- but the documentation should be right. It's still wrong in 15.2, and this isn't a new thing from Microsoft.
The problem isn't as big in the Object Model since you-the-programmer don't actually write those declarations, but it's still wrong.
So in VB-style documentation
Variant should be replaced with
Object, and in C-style documentation
variant with
dynamic.
/Uffe