Installer.Installers プロパティ
アセンブリ: System.Configuration.Install (system.configuration.install.dll 内)

インストーラに関連付けられているインストーラのコレクションを格納している InstallerCollection。

Installers プロパティは、Installer のインスタンスがコンポーネントを正しくインストールするために必要なオブジェクトをインストールするインストーラのコレクションを格納します。Installer クラスの Install、Commit、Rollback、Uninstall の各メソッドは、コレクション内のインストーラに順次アクセスし、各インストーラに対応するメソッドを呼び出します。
Installer のインスタンスがインストーラ コレクションに含まれている場合、Parent プロパティは、そのコレクションを格納する Installer インスタンスになります。Installers コレクションの使用例については、AssemblyInstaller クラスのトピックを参照してください。

Installers プロパティおよび Parent プロパティの例を次に示します。Installers プロパティは、Installer に関連付けられている InstallerCollection を表示します。
Dim myAssemblyInstaller As New AssemblyInstaller() Dim myServiceInstaller As New ServiceInstaller() Dim myEventLogInstaller As New EventLogInstaller() Dim myInstallerCollection As InstallerCollection = _ myAssemblyInstaller.Installers ' Add Installers to the InstallerCollection of 'myAssemblyInstaller'. myInstallerCollection.Add(myServiceInstaller) myInstallerCollection.Add(myEventLogInstaller) Dim myInstaller(1) As Installer myInstallerCollection.CopyTo(myInstaller, 0) ' Show the contents of the InstallerCollection of 'myAssemblyInstaller'. Console.WriteLine("Installers in the InstallerCollection : ") Dim iIndex As Integer For iIndex = 0 To myInstaller.Length - 1 Console.WriteLine(myInstaller(iIndex).ToString()) Next iIndex
AssemblyInstaller myAssemblyInstaller = new AssemblyInstaller(); ServiceInstaller myServiceInstaller = new ServiceInstaller(); EventLogInstaller myEventLogInstaller = new EventLogInstaller(); InstallerCollection myInstallerCollection = myAssemblyInstaller.Installers; // Add Installers to the InstallerCollection of 'myAssemblyInstaller'. myInstallerCollection.Add(myServiceInstaller); myInstallerCollection.Add(myEventLogInstaller); Installer[] myInstaller = new Installer[2]; myInstallerCollection.CopyTo(myInstaller,0); // Show the contents of the InstallerCollection of 'myAssemblyInstaller'. Console.WriteLine("Installers in the InstallerCollection : "); for (int iIndex=0; iIndex < myInstaller.Length; iIndex++) Console.WriteLine(myInstaller[iIndex].ToString());
AssemblyInstaller^ myAssemblyInstaller = gcnew AssemblyInstaller; ServiceInstaller^ myServiceInstaller = gcnew ServiceInstaller; EventLogInstaller^ myEventLogInstaller = gcnew EventLogInstaller; InstallerCollection^ myInstallerCollection = myAssemblyInstaller->Installers; // Add Installers to the InstallerCollection of 'myAssemblyInstaller'. myInstallerCollection->Add( myServiceInstaller ); myInstallerCollection->Add( myEventLogInstaller ); array<Installer^>^ myInstaller = gcnew array<Installer^>(2); myInstallerCollection->CopyTo( myInstaller, 0 ); // Show the contents of the InstallerCollection of 'myAssemblyInstaller'. Console::WriteLine( "Installers in the InstallerCollection : " ); for ( int iIndex = 0; iIndex < myInstaller->Length; iIndex++ ) Console::WriteLine( myInstaller[ iIndex ]->ToString() );
AssemblyInstaller myAssemblyInstaller = new AssemblyInstaller(); ServiceInstaller myServiceInstaller = new ServiceInstaller(); EventLogInstaller myEventLogInstaller = new EventLogInstaller(); InstallerCollection myInstallerCollection = myAssemblyInstaller.get_Installers(); // Add Installers to the InstallerCollection of 'myAssemblyInstaller'. myInstallerCollection.Add(myServiceInstaller); myInstallerCollection.Add(myEventLogInstaller); Installer myInstaller[] = new Installer[2]; myInstallerCollection.CopyTo(myInstaller, 0); //Show the contents of the InstallerCollection of 'myAssemblyInstaller'. Console.WriteLine("Installers in the InstallerCollection : "); for (int iIndex = 0; iIndex < myInstaller.length; iIndex++) { Console.WriteLine(myInstaller.get_Item(iIndex).ToString()); }


Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からInstaller.Installers プロパティを検索する場合は、下記のリンクをクリックしてください。

- Installer.Installers プロパティのページへのリンク