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

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

AssemblyInstaller.UseNewContext プロパティ

アセンブリインストール用に新しい InstallContext オブジェクト作成するかどうかを示す値を取得または設定します

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

Dim instance As AssemblyInstaller
Dim value As Boolean

value = instance.UseNewContext

instance.UseNewContext = value
public bool UseNewContext { get;
 set; }
public:
property bool UseNewContext {
    bool get ();
    void set (bool value);
}
/** @property */
public boolean get_UseNewContext ()

/** @property */
public void set_UseNewContext (boolean value)
public function get UseNewContext
 () : boolean

public function set UseNewContext
 (value : boolean)

プロパティ
アセンブリインストール用に新しInstallContext オブジェクト作成する場合trueそれ以外場合false既定値true です。

解説解説

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

使用例使用例

次の例では、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;
// Create an Object* of the 'AssemblyInstaller' class.
AssemblyInstaller^ myAssemblyInstaller = gcnew 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.set_UseNewContext(true);
.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
AssemblyInstaller クラス
AssemblyInstaller メンバ
System.Configuration.Install 名前空間


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

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

辞書ショートカット

すべての辞書の索引

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

   

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



AssemblyInstaller.UseNewContext プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS