Sdílet prostřednictvím


Chyba kompilátoru C3100

'target' : neznámý kvalifikátor atributů

Poznámky

Byl zadán neplatný cíl atributu.

Další informace naleznete v tématu Uživatelem definované atributy.

Příklad

Následující příklad vygeneruje C3100.

// C3100.cpp
// compile with: /clr /c
using namespace System;
[AttributeUsage(AttributeTargets::All)]
public ref class Attr : public Attribute {
public:
   Attr(int t) : m_t(t) {}
   int m_t;
};

[invalid_target:Attr(10)];   // C3100
[assembly:Attr(10)];   // OK