Installer.Parent Property

Gets or sets the installer containing the collection that this installer belongs to.

Namespace: System.Configuration.Install
Assembly: System.Configuration.Install (in system.configuration.install.dll)

Public Property Parent As Installer
Dim instance As Installer
Dim value As Installer

value = instance.Parent

instance.Parent = value
/** @property */
public Installer get_Parent ()

/** @property */
public void set_Parent (Installer value)

public function get Parent () : Installer

public function set Parent (value : Installer)

Property Value

An Installer containing the collection that this instance belongs to, or a null reference (Nothing in Visual Basic) if this instance does not belong to a collection.

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.

Dim myAssemblyInstaller1 As New AssemblyInstaller()
Dim myInstallerCollection1 As InstallerCollection = _
' 'myAssemblyInstaller' is an installer of type 'AssemblyInstaller'.

Dim myInstaller1 As Installer = myAssemblyInstaller.Parent
Console.WriteLine("Parent of myAssembly : {0", myInstaller1.ToString())

AssemblyInstaller myAssemblyInstaller1 = new AssemblyInstaller();
InstallerCollection myInstallerCollection1 
    = myAssemblyInstaller1.get_Installers();

// 'myAssemblyInstaller' is an installer of type 'AssemblyInstaller'.
Installer myInstaller1 = myAssemblyInstaller.get_Parent();

Console.WriteLine("Parent of myAssembly : {0",

  • Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see .

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

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0

Community Additions