Installer.Installers プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > Installer.Installers プロパティの意味・解説 

Installer.Installers プロパティ

インストーラが格納しているインストーラのコレクションを取得します。

名前空間: System.Configuration.Install
アセンブリ: System.Configuration.Install (system.configuration.install.dll 内)
構文構文

Public ReadOnly Property
 Installers As InstallerCollection
Dim instance As Installer
Dim value As InstallerCollection

value = instance.Installers
public InstallerCollection Installers { get;
 }
public:
property InstallerCollection^ Installers {
    InstallerCollection^ get ();
}
/** @property */
public InstallerCollection get_Installers ()
public function get Installers
 () : InstallerCollection

プロパティ値
インストーラに関連付けられているインストーラのコレクションを格納している InstallerCollection。

解説解説
使用例使用例

Installers プロパティおよび Parent プロパティの例を次に示します。Installers プロパティは、Installer に関連付けられている InstallerCollection を表示します。

Dim myAssemblyInstaller As New
 AssemblyInstaller()
Dim myServiceInstaller As New
 ServiceInstaller()
Dim myEventLogInstaller As New
 EventLogInstaller()
Dim myInstallerCollection As InstallerCollection
 = _
                                       myAssemblyInstaller.Installers

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

Dim myInstaller(1) As Installer
myInstallerCollection.CopyTo(myInstaller, 0)
' Show the contents of the InstallerCollection of 'myAssemblyInstaller'.
Console.WriteLine("Installers in the InstallerCollection : ")
Dim iIndex As Integer
For iIndex = 0 To myInstaller.Length - 1
   Console.WriteLine(myInstaller(iIndex).ToString())
Next iIndex
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());
AssemblyInstaller^ myAssemblyInstaller = gcnew AssemblyInstaller;
ServiceInstaller^ myServiceInstaller = gcnew ServiceInstaller;
EventLogInstaller^ myEventLogInstaller = gcnew EventLogInstaller;

InstallerCollection^ myInstallerCollection = myAssemblyInstaller->Installers;

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

array<Installer^>^ myInstaller = gcnew array<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() );
AssemblyInstaller myAssemblyInstaller = new AssemblyInstaller();
ServiceInstaller myServiceInstaller = new ServiceInstaller();
EventLogInstaller myEventLogInstaller = new EventLogInstaller();
InstallerCollection myInstallerCollection 
    = myAssemblyInstaller.get_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.get_Item(iIndex).ToString());
}  
.NET Framework のセキュリティ.NET Framework のセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
Installer クラス
Installer メンバ
System.Configuration.Install 名前空間
AssemblyInstaller クラス
Commit
ComponentInstaller クラス
Install
InstallerCollection
Parent
Rollback
TransactedInstaller
Uninstall



英和和英テキスト翻訳

英語⇒日本語日本語⇒英語

辞書ショートカット

すべての辞書の索引

「Installer.Installers プロパティ」の関連用語

Installer.Installers プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



Installer.Installers プロパティのページの著作権

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2026 Microsoft.All rights reserved.

©2026 GRAS Group, Inc.RSS