Mozilla.com

  1. MDC
  2. Main Page
  3. nsIServiceManager
  4. getServiceByContractID
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

This method returns a reference to a particular XPCOM service given the ContractID of the service.

 void getServiceByContractID(
   in string aContractID,
   in nsIIDRef aIID,
   [iid_is(aIID),retval] out nsQIResult aResult
 );

Parameters

aContractID
[in] The ContractID of the service that is being requested.
aIID
[in] The interface type to be returned.
aResult
[out] The resulting interface pointer.

Exceptions Thrown

NS_ERROR_FACTORY_NOT_REGISTERED
Indicates that the specified class is not registered.

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

Files (0)