Mozilla.com

  1. MDC
  2. Main Page
  3. nsIFactory
  4. createInstance
Table of contents
  1. 1. Summary
  2. 2. Parameters
  3. 3. Exceptions Thrown
Table of contents
  1. 1. Summary
  2. 2. Parameters
  3. 3. Exceptions Thrown

« 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.

Page last modified 01:27, 24 Apr 2006 by Pmash

Files (0)