Mozilla.com

Table of contents
  1. 1. Summary
  2. 2. Remarks
Table of contents
  1. 1. Summary
  2. 2. Remarks

« XPCOM API Reference

Summary

Specifies a ClassID through which an instance of this class can be created.

[notxpcom] readonly attribute nsCID classIDNoAlloc;

Remarks

If the flags attribute has the nsIClassInfo::SINGLETON bit set, then the value of this attribute specifies a ClassID through which this class can be accessed as a service using nsIServiceManager::getService.

If the class does not have a ClassID, it should throw NS_ERROR_NOT_AVAILABLE.

This attribute is similar to the classID attribute; however, this attribute exists so that C++ callers can avoid allocating and freeing a nsCID object, as would happen if they used classID.

Page last modified 22:13, 8 Nov 2005 by DarinFisher

Files (0)