Installer.Parent プロパティ
アセンブリ: System.Configuration.Install (system.configuration.install.dll 内)

/** @property */ public Installer get_Parent () /** @property */ public void set_Parent (Installer value)
インスタンスが属しているコレクションを格納している Installer。インスタンスがコレクションに属していない場合は null 参照 (Visual Basic では Nothing)。

Installer のインスタンスがインストーラ コレクションの一部である場合、Parent プロパティに、そのコレクションを格納する Installer インスタンスが設定されます。Installers コレクションの使用例については、AssemblyInstaller クラスのトピックを参照してください。
Installers プロパティは、インストーラのコレクションを格納します。Installer クラスの Install、Commit、Rollback、Uninstall の各メソッドは、コレクション内のインストーラに順次アクセスし、各インストーラに対応するメソッドを呼び出します。

Parent プロパティの例を次に示します。Parent プロパティは、この Installer が属するコレクションを格納している Installer を取得します。
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())
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());
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.get_Installers(); // 'myAssemblyInstaller' is an installer of type 'AssemblyInstaller'. myInstallerCollection1.Add(myAssemblyInstaller); Installer myInstaller1 = myAssemblyInstaller.get_Parent(); Console.WriteLine("Parent of myAssembly : {0}", myInstaller1.ToString());


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
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からInstaller.Parent プロパティを検索する場合は、下記のリンクをクリックしてください。

- Installer.Parent プロパティのページへのリンク