Installer.Installers 속성

정의

이 설치 관리자에 포함된 설치 관리자 컬렉션을 가져옵니다.

[System.ComponentModel.Browsable(false)]
public System.Configuration.Install.InstallerCollection Installers { get; }

속성 값

이 설치 관리자와 관련된 설치 관리자 컬렉션이 포함된 InstallerCollection입니다.

특성

예제

다음 예제에서는 및 Parent 속성을 보여 줍니다Installers. 속성은 Installers 와 연결된 을 표시 InstallerCollection 합니다 Installer.

AssemblyInstaller myAssemblyInstaller = new AssemblyInstaller();
ServiceInstaller myServiceInstaller = new ServiceInstaller();
EventLogInstaller myEventLogInstaller = new EventLogInstaller();

InstallerCollection myInstallerCollection = myAssemblyInstaller.Installers;

// Add Installers to the InstallerCollection of 'myAssemblyInstaller'.
myInstallerCollection.Add(myServiceInstaller);
myInstallerCollection.Add(myEventLogInstaller);

Installer[] myInstaller = new Installer[2];
myInstallerCollection.CopyTo(myInstaller,0);
// Show the contents of the InstallerCollection of 'myAssemblyInstaller'.
Console.WriteLine("Installers in the InstallerCollection : ");
for (int iIndex=0; iIndex < myInstaller.Length; iIndex++)
   Console.WriteLine(myInstaller[iIndex].ToString());

설명

속성에는 Installers 이 instance 구성 요소를 올바르게 설치하는 데 필요한 개체를 설치하는 설치 관리자 컬렉션이 Installer 포함되어 있습니다. 클래스의 Installer , Commit, RollbackUninstall 메서드는 Install설치 관리자 컬렉션을 살펴보고 각 설치 관리자의 해당 메서드를 호출합니다.

의 이 instance Installer 설치 관리자 컬렉션 Parent 에 포함된 경우 속성은 Installer 컬렉션을 포함하는 instance. 컬렉션을 사용하는 Installers 예제는 클래스를 참조하세요 AssemblyInstaller .

적용 대상

추가 정보