नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
'attribute': ambiguous attribute
Remarks
The compiler found more than one definition of an attribute.
An attribute was defined more than once.
For more information, see User-Defined Attributes.
Example
The following example generates 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 {};