InstallerCollection.Insert メソッド
アセンブリ: System.Configuration.Install (system.configuration.install.dll 内)

Dim instance As InstallerCollection Dim index As Integer Dim value As Installer instance.Insert(index, value)

次の例は、AddRange メソッドの例と同じです。この例の詳細については、AddRange メソッドの例を参照してください。
Dim myTransactedInstaller1 As New TransactedInstaller() Dim myTransactedInstaller2 As New TransactedInstaller() Dim myAssemblyInstaller As New AssemblyInstaller() Dim myInstallContext As InstallContext ' Create a instance of 'AssemblyInstaller' that installs 'MyAssembly1.exe'. myAssemblyInstaller = New AssemblyInstaller("MyAssembly1.exe", Nothing) ' Add the instance of 'AssemblyInstaller' to the 'TransactedInstaller'. myTransactedInstaller1.Installers.Insert(0, myAssemblyInstaller) ' Create a instance of 'AssemblyInstaller' that installs 'MyAssembly2.exe'. myAssemblyInstaller = New AssemblyInstaller("MyAssembly2.exe", Nothing) ' Add the instance of 'AssemblyInstaller' to the 'TransactedInstaller'. myTransactedInstaller1.Installers.Insert(1, myAssemblyInstaller) ' Copy the installers of 'myTransactedInstaller1' to 'myTransactedInstaller2'. myTransactedInstaller2.Installers.AddRange(myTransactedInstaller1.Installers)
TransactedInstaller myTransactedInstaller1 = new TransactedInstaller(); TransactedInstaller myTransactedInstaller2 = new TransactedInstaller(); AssemblyInstaller myAssemblyInstaller = new AssemblyInstaller(); InstallContext myInstallContext; // Create a instance of 'AssemblyInstaller' that installs 'MyAssembly1.exe'. myAssemblyInstaller = new AssemblyInstaller("MyAssembly1.exe", null); // Add the instance of 'AssemblyInstaller' to the 'TransactedInstaller'. myTransactedInstaller1.Installers.Insert(0, myAssemblyInstaller); // Create a instance of 'AssemblyInstaller' that installs 'MyAssembly2.exe'. myAssemblyInstaller = new AssemblyInstaller("MyAssembly2.exe", null); // Add the instance of 'AssemblyInstaller' to the 'TransactedInstaller'. myTransactedInstaller1.Installers.Insert(1, myAssemblyInstaller); // Copy the installers of 'myTransactedInstaller1' to 'myTransactedInstaller2'. myTransactedInstaller2.Installers.AddRange(myTransactedInstaller1.Installers);
TransactedInstaller^ myTransactedInstaller1 = gcnew TransactedInstaller; TransactedInstaller^ myTransactedInstaller2 = gcnew TransactedInstaller; AssemblyInstaller^ myAssemblyInstaller = gcnew AssemblyInstaller; InstallContext^ myInstallContext; // Create a instance of 'AssemblyInstaller' that installs 'MyAssembly1.exe'. myAssemblyInstaller = gcnew AssemblyInstaller( "MyAssembly1.exe",nullptr ); // Add the instance of 'AssemblyInstaller' to the 'TransactedInstaller'. myTransactedInstaller1->Installers->Insert( 0, myAssemblyInstaller ); // Create a instance of 'AssemblyInstaller' that installs 'MyAssembly2.exe'. myAssemblyInstaller = gcnew AssemblyInstaller( "MyAssembly2.exe",nullptr ); // Add the instance of 'AssemblyInstaller' to the 'TransactedInstaller'. myTransactedInstaller1->Installers->Insert( 1, myAssemblyInstaller ); // Copy the installers of 'myTransactedInstaller1' to 'myTransactedInstaller2'. myTransactedInstaller2->Installers->AddRange( myTransactedInstaller1->Installers );
TransactedInstaller myTransactedInstaller1 = new TransactedInstaller(); TransactedInstaller myTransactedInstaller2 = new TransactedInstaller(); AssemblyInstaller myAssemblyInstaller = new AssemblyInstaller(); InstallContext myInstallContext; // Create a instance of 'AssemblyInstaller' // that installs 'MyAssembly1.exe'. myAssemblyInstaller = new AssemblyInstaller("MyAssembly1.exe", null); // Add the instance of 'AssemblyInstaller' to the 'TransactedInstaller'. myTransactedInstaller1.get_Installers().Insert(0, myAssemblyInstaller); // Create a instance of 'AssemblyInstaller' // that installs 'MyAssembly2.exe'. myAssemblyInstaller = new AssemblyInstaller("MyAssembly2.exe", null); // Add the instance of 'AssemblyInstaller' to the 'TransactedInstaller'. myTransactedInstaller1.get_Installers().Insert(1, myAssemblyInstaller); // Copy the installers of 'myTransactedInstaller1' // to 'myTransactedInstaller2'. myTransactedInstaller2.get_Installers(). AddRange(myTransactedInstaller1.get_Installers());


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に収録されているすべての辞書からInstallerCollection.Insert メソッドを検索する場合は、下記のリンクをクリックしてください。

- InstallerCollection.Insert メソッドのページへのリンク