この記事は翻訳者によって翻訳されたものです。 記事の文章にポインターを重ねると、原文のテキストが表示されます。 |
訳文
原文
|
Projects インターフェイス
特定の種類のすべてのプロジェクトを表します。
アセンブリ: EnvDTE (EnvDTE.dll 内)
Projects 型で公開されるメンバーは以下のとおりです。
| 名前 | 説明 | |
|---|---|---|
|
Count | Projects コレクション内のオブジェクトの数を示す値を取得します。 |
|
DTE | トップレベルの機能拡張オブジェクトを取得します。 |
|
Kind | オブジェクトの種類または型を示す GUID 文字列を取得します。 |
|
Parent | Projects コレクションの直接の親オブジェクトを取得します。 |
|
Properties | Projects コレクションに属するすべてのプロパティのコレクションを取得します。 |
| 名前 | 説明 | |
|---|---|---|
|
GetEnumerator() | コレクションを反復処理する列挙子を返します。 (IEnumerable から継承されます。) |
|
GetEnumerator() | コレクション内の項目の列挙子を取得します。 |
|
Item | Projects コレクションのインデックス付きメンバーを返します。 |
Projects コレクションは、統合開発環境 (IDE: Integrated Development Environment) の現在のインスタンスにある同じ種類のすべてのプロジェクトを表します。 通常、このコレクションは、DTE オブジェクトに遅延バインディングされます。
Sub ProjectsExample() ' Before running, be sure you have one or more projects ' loaded in the solution. Dim prj As Project Dim prjs As Projects Dim msg As String ' Go through all of the projects in the solution and display ' their names and types. prjs = DTE.Solution.Projects For Each prj In prjs msg += "NAME: " & prj.Name & "TYPE: " & prj.Kind & vbCr Next MsgBox(msg) End Sub