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

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

AssemblyInstaller.CheckIfInstallable メソッド

指定したアセンブリインストールできるかどうか確認します

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

Public Shared Sub CheckIfInstallable
 ( _
    assemblyName As String _
)
Dim assemblyName As String

AssemblyInstaller.CheckIfInstallable(assemblyName)
public static void CheckIfInstallable
 (
    string assemblyName
)
public:
static void CheckIfInstallable (
    String^ assemblyName
)
public static void CheckIfInstallable
 (
    String assemblyName
)
public static function CheckIfInstallable
 (
    assemblyName : String
)

パラメータ

assemblyName

インストーラ検索する対象アセンブリ

例外例外
解説解説
使用例使用例

存在するアセンブリ存在しないアセンブリ両方に対して CheckIfInstallable メソッド呼び出しその結果コンソール表示する例を次に示します

Imports System
Imports System.Configuration.Install

Class MyCheckIfInstallableClass
   
   Shared Sub Main()

      Try
         ' Determine whether the assembly 'MyAssembly' is installable.
         AssemblyInstaller.CheckIfInstallable("MyAssembly_CheckIfInstallable.exe")
         
         Console.WriteLine("The assembly 'MyAssembly_CheckIfInstallable'
 is installable")
         
         ' Determine whether the assembly 'NonExistant' is installable.
         AssemblyInstaller.CheckIfInstallable("NonExistant")
       Catch 
      End Try

   End Sub 'Main

End Class 'MyCheckIfInstallableClass
 
using System;
using System.Configuration.Install;



class MyCheckIfInstallableClass:Installer
{
   static void Main()
   {


      try
      {
         // Determine whether the assembly 'MyAssembly' is installable.
         AssemblyInstaller.CheckIfInstallable( "MyAssembly_CheckIfInstallable.exe"
 );

         Console.WriteLine( "The assembly 'MyAssembly_CheckIfInstallable' is
 installable" );

         // Determine whether the assembly 'NonExistant' is installable.
         AssemblyInstaller.CheckIfInstallable( "NonExistant" );
      }
      catch( Exception )
      {
      }


   }
}
#using <System.dll>
#using <System.Configuration.Install.dll>

using namespace System;
using namespace System::Configuration::Install;
int main()
{
   try
   {
      
      // Determine whether the assembly 'MyAssembly' is installable.
      AssemblyInstaller::CheckIfInstallable( "MyAssembly_CheckIfInstallable.exe"
 );
      Console::WriteLine( "The assembly 'MyAssembly_CheckIfInstallable' is installable"
 );
      
      // Determine whether the assembly 'NonExistant' is installable.
      AssemblyInstaller::CheckIfInstallable( "NonExistant" );
   }
   catch ( Exception^ e ) 
   {
      Console::WriteLine( e );
   }

}

import System.*;
import System.Configuration.Install.*;

class MyCheckIfInstallableClass extends Installer
{
    public static void main(String[]
 args)
    {
        try {
            // Determine whether the assembly 'MyAssembly' is installable.
            AssemblyInstaller.CheckIfInstallable(
                "MyAssembly_CheckIfInstallable.exe");
            Console.WriteLine("The assembly 'MyAssembly_CheckIfInstallable'
 "
                + "is installable");

            // Determine whether the assembly 'NonExistant' is installable.
            AssemblyInstaller.CheckIfInstallable("NonExistant");
        }
        catch (System.Exception exp) {
        }
    } //main
} //MyCheckIfInstallableClass
.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
AssemblyInstaller クラス
AssemblyInstaller メンバ
System.Configuration.Install 名前空間


このページでは「.NET Framework クラス ライブラリ リファレンス」からAssemblyInstaller.CheckIfInstallable メソッドを検索した結果を表示しています。
Weblioに収録されているすべての辞書からAssemblyInstaller.CheckIfInstallable メソッドを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からAssemblyInstaller.CheckIfInstallable メソッド を検索

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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2025 GRAS Group, Inc.RSS