Installer.Installers Property
Gets the collection of installers that this installer contains.
Assembly: System.Configuration.Install (in System.Configuration.Install.dll)
'Declaration <BrowsableAttribute(False)> _ Public ReadOnly Property Installers As InstallerCollection 'Usage Dim instance As Installer Dim value As InstallerCollection value = instance.Installers
Property Value
Type: System.Configuration.Install.InstallerCollectionAn InstallerCollection containing the collection of installers associated with this installer.
The Installers property contains a collection of installers that install objects needed by this Installer instance to correctly install the component. The Install, Commit, Rollback, and Uninstall methods of the Installer class go through the collection of installers and invokes the corresponding method of each installer.
If this instance of Installer is contained in an installer collection, the Parent property is the Installer instance that contains the collection. For an example of the use of the Installers collection, see the AssemblyInstaller class.
The following example demonstrates the Installers and Parent properties. The Installers property shows the InstallerCollection associated with an Installer.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.