Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Components.ID

要約

Components.ID は、nsIJSID インターフェースに合わせたネイティブオブジェクトを作成するコンストラクタです。

構文

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

パラメータ

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

説明

Components.ID は、インターフェース ID をパラメータとして取る、QueryInterface、getInterfaces などのメソッドを実装するために使われるインターフェース ID を作成します。

Components.classesComponents.classesByIDComponents.interfaces は、ほとんどの JavaScript コードが扱うことのない nsID をほぼすべて提供します。Components.classes, Components.classesByID, Components.interfaces はほとんどの JavaScript コードが扱う必要がある nsID のほぼ全てです。例外は、コンポーネントが JavaScript で書かれていて、自身を独自の nsID でコンポーネントマネージャに登録する必要がある場合です。その際の ID は未登録のため、Components.classes には現れません。

ドキュメントのタグと貢献者

 このページの貢献者: kohei.yoshino
 最終更新者: kohei.yoshino,