C28231

Note

This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

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.