Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

Compiler Warning (level 3) C4580

[attribute] is deprecated; instead specify System::Attribute as a base class

attribute is no longer the preferred syntax for creating user-defined attributes. For more information, see User-Defined Attributes.

The following sample generates C3454.

// C4580.cpp
// compile with: /W3 /c /clr
[attribute]   // C4580
public ref class Attr {
public:
   int m_t;
};

public ref class Attr2 : System::Attribute {
public:
   int m_t;
};

Community Additions

ADD
Show:
© 2015 Microsoft