Installer.Parent Property
Gets or sets the installer containing the collection that this installer belongs to.
Assembly: System.Configuration.Install (in System.Configuration.Install.dll)
If this instance of Installer is part of an installer collection, the Parent property is set to the Installer instance that contains the collection. For an example of the use of the Installers collection, see the AssemblyInstaller class.
The Installers property contains a collection of installers. 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.
The following example demonstrates the Parent property. The Parent property gets the Installer containing the collection that this Installer belongs to.
AssemblyInstaller myAssemblyInstaller1 = new AssemblyInstaller(); InstallerCollection myInstallerCollection1 = myAssemblyInstaller1.Installers; // 'myAssemblyInstaller' is an installer of type 'AssemblyInstaller'. myInstallerCollection1.Add(myAssemblyInstaller); Installer myInstaller1 = myAssemblyInstaller.Parent; Console.WriteLine("Parent of myAssembly : {0}", myInstaller1.ToString());
- 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.