ComponentInstaller.IsEquivalentInstaller メソッド
アセンブリ: System.Configuration.Install (system.configuration.install.dll 内)

Public Overridable Function IsEquivalentInstaller ( _ otherInstaller As ComponentInstaller _ ) As Boolean
Dim instance As ComponentInstaller Dim otherInstaller As ComponentInstaller Dim returnValue As Boolean returnValue = instance.IsEquivalentInstaller(otherInstaller)
戻り値
対象となるインストーラと otherInstaller パラメータで指定されたインストーラが同じオブジェクトをインストールする場合は true。それ以外の場合は false。

通常、IsEquivalentInstaller は、対象となるインストーラと otherInstaller パラメータで指定されたインストーラが同じオブジェクトをインストールする場合にだけ true を返します。そのような場合は、いずれのインストーラに対して Install メソッドまたは Uninstall メソッドを呼び出しても、結果としてのシステムの状態は変わりません。

イベント ログを作成し、イベント ログ コンポーネントのプロパティを EventLogInstaller オブジェクトにコピーする、クラス MyInstallClass を定義する例を次に示します。またこの例では、ServiceInstaller オブジェクトが EventLogInstaller と同じ種類のインストールを処理できるかどうかをチェックします。
Dim myServiceInstaller As New ServiceInstaller() ' Check whether 'ServiceInstaller' object can handle the same ' kind of installation as 'EventLogInstaller' object. If myEventLogInstaller.IsEquivalentInstaller(myServiceInstaller) Then Console.WriteLine("'ServiceInstaller' can handle the same kind" + _ " of installation as EventLogInstaller") Else Console.WriteLine("'ServiceInstaller' can't handle the same" + _ " kind of installation as 'EventLogInstaller'") End If
ServiceInstaller myServiceInstaller = new ServiceInstaller(); // Check whether 'ServiceInstaller' object can handle the same // kind of installation as 'EventLogInstaller' object. if(myEventLogInstaller.IsEquivalentInstaller(myServiceInstaller)) { Console.WriteLine("'ServiceInstaller' can handle the same kind" +" of installation as EventLogInstaller"); } else { Console.WriteLine("'ServiceInstaller' can't handle the same" +" kind of installation as 'EventLogInstaller'"); }
ServiceInstaller^ myServiceInstaller = gcnew ServiceInstaller; // Check whether 'ServiceInstaller' object can handle the same // kind of installation as 'EventLogInstaller' object. if ( myEventLogInstaller->IsEquivalentInstaller( myServiceInstaller ) ) { Console::WriteLine( "'ServiceInstaller' can handle the same kind " + "of installation as EventLogInstaller" ); } else { Console::WriteLine( "'ServiceInstaller' can't handle the same " + "kind of installation as 'EventLogInstaller'" ); }
ServiceInstaller myServiceInstaller = new ServiceInstaller(); // Check whether 'ServiceInstaller' object can handle the same // kind of installation as 'EventLogInstaller' object. if (myEventLogInstaller.IsEquivalentInstaller(myServiceInstaller)) { Console.WriteLine("'ServiceInstaller' can handle the same kind" + " of installation as EventLogInstaller"); } else { Console.WriteLine("'ServiceInstaller' can't handle the same" + " kind of installation as 'EventLogInstaller'"); }


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に収録されているすべての辞書からComponentInstaller.IsEquivalentInstaller メソッドを検索する場合は、下記のリンクをクリックしてください。

- ComponentInstaller.IsEquivalentInstaller メソッドのページへのリンク