नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
Indicates that the COM object to which it applies is licensed, and must be instantiated using IClassFactory2.
Syntax
[licensed]
Remarks
The licensed C++ attribute has the same functionality as the licensed MIDL attribute.
Example
// cpp_attr_ref_licensed.cpp
// compile with: /LD
#include "unknwn.h"
[object, uuid("00000000-0000-0000-0000-000000000001")]
__interface IMyI : IUnknown {
HRESULT f();
};
[coclass, version("2.1"), uuid(12345678-1111-2222-3333-123456789012),
licensed, threading(free), progid(some.name)]
class CSample : public IMyI {
public:
int nSize;
};
[module(name="MyLibrary", version="1.0", helpstring="My Library Block")];
Requirements
| Attribute context | Value |
|---|---|
| Applies to | class, struct |
| Repeatable | No |
| Required attributes | coclass |
| Invalid attributes | None |
For more information, see Attribute Contexts.