The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at C28231.

warning C28231: Annotation is only valid on array

This warning indicates that an argument to an annotation should be an array, and some other type was encountered.