« XPCOM API Reference
Summary
Creates an instance of the class associated with this factory.
void createInstance(
in nsISupports aOuter,
in nsIIDRef aIID,
[iid_is(aIID),retval] out nsQIResult aResult
);
Parameters
- aOuter
- [in] Pointer to a component that wishes to be aggregated in the resulting instance. This can be nsnull if no aggregation is requested.
- aIID
- [in] The interface type to be returned.
- aResult
- [out] The resulting interface pointer.
Exceptions Thrown
- NS_ERROR_NO_INTERFACE
- Indicates that the requested interface is not supported.
- NS_ERROR_NO_AGGREGATION
- Indicates that aggregation is not supported.