Not
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
"attribut": tvetydigt attribut
Anmärkningar
Kompilatorn hittade mer än en definition av ett attribut.
Ett attribut har definierats mer än en gång.
Mer information finns iUser-Defined Attribut.
Example
I följande exempel genereras C3342.
// C3342.cpp
// compile with: /clr /c
using namespace System;
using namespace System::Reflection;
[AttributeUsage(AttributeTargets::All)]
public ref class XAttribute : public Attribute {};
[AttributeUsage(AttributeTargets::All)]
public ref class X : public Attribute {};
[X] // C3342 could refer to X or XAttribute
// try the following line instead
// [XAttribute]
public ref class Class4 {};