Installer.Parent プロパティとは何? わかりやすく解説 Weblio辞書 (original) (raw)
インストーラが属しているコレクションを格納しているインストーラを取得または設定します。
名前空間: System.Configuration.Install
アセンブリ: System.Configuration.Install (system.configuration.install.dll 内)
構文
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());