नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
'attribute': a custom attribute may not be used inside a function
Remarks
A custom attribute cannot be used inside a function. For more information on custom attributes, see the topic attribute.
Example
The following example generates C3749:
// C3749a.cpp
// compile with: /clr /c
using namespace System;
[AttributeUsage(AttributeTargets::All)]
public ref struct ABC : public Attribute {
ABC() {}
};
void f1() { [ABC]; }; // C3749