ComponentInstaller.IsEquivalentInstaller メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > ComponentInstaller.IsEquivalentInstaller メソッドの意味・解説 

ComponentInstaller.IsEquivalentInstaller メソッド

指定したインストーラが、対象インストーラと同じオブジェクトインストールするかどうか確認します

名前空間: System.Configuration.Install
アセンブリ: 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)
public virtual bool IsEquivalentInstaller (
    ComponentInstaller otherInstaller
)
public:
virtual bool IsEquivalentInstaller (
    ComponentInstaller^ otherInstaller
)
public boolean IsEquivalentInstaller (
    ComponentInstaller otherInstaller
)
public function IsEquivalentInstaller (
    otherInstaller : ComponentInstaller
) : boolean

パラメータ

otherInstaller

比較対象インストーラ

戻り値
対象となるインストーラotherInstaller パラメータ指定されインストーラが同じオブジェクトインストールする場合trueそれ以外場合false

解説解説
使用例使用例

イベント ログ作成しイベント ログ コンポーネントプロパティを 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'");
}
.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ComponentInstaller クラス
ComponentInstaller メンバ
System.Configuration.Install 名前空間



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

ComponentInstaller.IsEquivalentInstaller メソッドのお隣キーワード
検索ランキング

   

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



ComponentInstaller.IsEquivalentInstaller メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2024 GRAS Group, Inc.RSS