Installer.Parent 속성

정의

이 설치 관리자가 속한 컬렉션을 포함하는 설치 관리자를 가져오거나 설정합니다.Gets or sets the installer containing the collection that this installer belongs to.

public:
 property System::Configuration::Install::Installer ^ Parent { System::Configuration::Install::Installer ^ get(); void set(System::Configuration::Install::Installer ^ value); };
[System.ComponentModel.Browsable(true)]
[System.ComponentModel.TypeConverter("System.Configuration.Design.InstallerParentConverter")]
[System.ComponentModel.TypeConverter(typeof(System.Configuration.Install.InstallerParentConverter))]
public System.Configuration.Install.Installer Parent { get; set; }
member this.Parent : System.Configuration.Install.Installer with get, set
Public Property Parent As Installer

속성 값

이 인스턴스가 속한 컬렉션을 포함하는 Installer입니다. 이 인스턴스가 컬렉션에 속하지 않는 경우에는 null입니다.An Installer containing the collection that this instance belongs to, or null if this instance does not belong to a collection.

특성

예제

다음 예제는 Parent 속성입니다.The following example demonstrates the Parent property. Parent 속성을 가져옵니다 합니다 Installer 컬렉션을 포함 하이 Installer 에 속합니다.The Parent property gets the Installer containing the collection that this Installer belongs to.

AssemblyInstaller^ myAssemblyInstaller1 = gcnew 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 );
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());
Dim myAssemblyInstaller1 As New AssemblyInstaller()
Dim myInstallerCollection1 As InstallerCollection = _
                                      myAssemblyInstaller1.Installers
' 'myAssemblyInstaller' is an installer of type 'AssemblyInstaller'.
myInstallerCollection1.Add(myAssemblyInstaller)

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

설명

경우이 인스턴스의 Installer 는 설치 관리자 컬렉션의 일부인를 Parent 속성을 Installer 인스턴스 컬렉션을 포함 하 합니다.If this instance of Installer is part of an installer collection, the Parent property is set to the Installer instance that contains the collection. 사용의 예는 Installers 컬렉션에 참조를 AssemblyInstaller 클래스입니다.For an example of the use of the Installers collection, see the AssemblyInstaller class.

Installers 속성 설치 관리자의 컬렉션을 포함 합니다.The Installers property contains a collection of installers. 합니다 Install, Commit, Rollback, 및 Uninstall 의 메서드는 Installer 클래스는 설치 관리자의 컬렉션을 이동 하 고 각 설치 관리자의 해당 메서드를 호출 합니다.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.

적용 대상

추가 정보