Compiler Error C3455

 

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 Compiler Error C3455.

attribute': none of the attribute constructors matched the arguments

An invalid value was used to declare an attribute. See attribute for more information.

The following sample generates C3455.

// C3455.cpp  
// compile with: /clr /c  
using namespace System;  
  
[attribute("MyAt")]   // C3455  
// try the following line instead  
// [attribute(All)]  
ref struct MyAttr {  
   MyAttr() {}  
};  

Show: