Components.ID

Summary

Components.ID is a constructor that creates native objects that conform to the nsIJSID interface.

Syntax

var interfaceID = [ new ] Components.ID(iid);

Parameters

iid
A string of the format '{00000000-0000-0000-0000-000000000000}' giving the interface ID of the interface

Description

Components.ID creates interface IDs for use in implementing methods like QueryInterface, getInterfaces, and other methods that take interface IDs as parameters. Components.classes, Components.classesByID, Components.interfaces provide pretty much all the nsIDs that most JavaScript code would ever need to deal with. The exception to this is the case where a component is written in JavaScript and needs to register itself with the component manager using its own nsID - an ID that is not already registered and thus does not appear in Components.classes.

Document Tags and Contributors

 Last updated by: trevorh,