AssemblyInstaller.UseNewContext プロパティ
アセンブリ: System.Configuration.Install (system.configuration.install.dll 内)

Dim instance As AssemblyInstaller Dim value As Boolean value = instance.UseNewContext instance.UseNewContext = value
/** @property */ public boolean get_UseNewContext () /** @property */ public void set_UseNewContext (boolean value)
アセンブリのインストール用に新しい InstallContext オブジェクトを作成する場合は true。それ以外の場合は false。既定値は true です。

このプロパティを true に設定すると、アセンブリに関するメッセージのログを記録するために、"{Assembly name}.InstallLog" という名前の新しいファイルが作成されます。UseNewContext を false に設定すると、新しいファイルは作成されません。

次の例では、AssemblyInstaller コンストラクタの呼び出しによって AssemblyInstaller が作成されます。このオブジェクトの UseNewContext プロパティが true に設定され、Install メソッドが MyAssembly_HelpText.exe アセンブリに対して呼び出されます。これにより、ログ メッセージがコンソールに表示されます。
' Create an object of the 'AssemblyInstaller' class. Dim myAssemblyInstaller As _ New AssemblyInstaller("MyAssembly_HelpText.exe", commandLineOptions) ' Set the 'UseNewContext' property to true. myAssemblyInstaller.UseNewContext = True
// Create an object of the 'AssemblyInstaller' class. AssemblyInstaller myAssemblyInstaller = new AssemblyInstaller( "MyAssembly_HelpText.exe", commandLineOptions ); // Set the 'UseNewContext' property to true. myAssemblyInstaller.UseNewContext = true;


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に収録されているすべての辞書からAssemblyInstaller.UseNewContext プロパティを検索する場合は、下記のリンクをクリックしてください。

- AssemblyInstaller.UseNewContext プロパティのページへのリンク