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

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

Installer.Context プロパティ

現在のインストールに関する情報取得または設定します

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

Dim instance As Installer
Dim value As InstallContext

value = instance.Context

instance.Context = value
public InstallContext Context { get; set;
 }
public:
property InstallContext^ Context {
    InstallContext^ get ();
    void set (InstallContext^ value);
}
/** @property */
public InstallContext get_Context ()

/** @property */
public void set_Context (InstallContext value)
public function get Context
 () : InstallContext

public function set Context
 (value : InstallContext)

プロパティ
現在のインストールに関する情報格納している InstallContext。

解説解説
使用例使用例

Installer クラスContext プロパティの例を次に示しますContext プロパティには、インストールに関するログ ファイルの場所、Uninstall メソッドが必要とする情報保存するファイルの場所、およびインストール実行可能ファイル実行されたときに入力されコマンド ラインなどの情報格納されます。その後、これらの内容コンソール表示されます。

Dim myStringDictionary As StringDictionary
 = Context.Parameters
If Context.Parameters.Count > 0 Then
   Console.WriteLine("Context Property : ")
   Dim myString As String
   For Each myString In
  Context.Parameters.Keys
      Console.WriteLine(Context.Parameters(myString))
   Next myString
End If
StringDictionary myStringDictionary = Context.Parameters;
if ( Context.Parameters.Count > 0 )
{
   Console.WriteLine("Context Property : " );
   foreach( string myString in
 Context.Parameters.Keys)
   {
      Console.WriteLine( Context.Parameters[ myString ] );
   }
}
StringDictionary^ myStringDictionary = Context->Parameters;
if ( Context->Parameters->Count > 0 )
{
   Console::WriteLine( "Context Property : " );
   IEnumerator^ myEnum = Context->Parameters->Keys->GetEnumerator();
   while ( myEnum->MoveNext() )
   {
      String^ myString = safe_cast<String^>(myEnum->Current);
      Console::WriteLine( Context->Parameters[ myString ] );
   }
}
StringDictionary myStringDictionary = get_Context().get_Parameters();
if (get_Context().get_Parameters().get_Count() > 0) {
    Console.WriteLine("Context Property : ");
    IEnumerator myEnum = get_Context().get_Parameters().
        get_Keys().GetEnumerator();
    while (myEnum.MoveNext()) {
        String myString = (String)myEnum.get_Current();
        Console.WriteLine(get_Context().get_Parameters().
            get_Item(myString));
    }
}
.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



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

辞書ショートカット

すべての辞書の索引

「Installer.Context プロパティ」の関連用語

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

   

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



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

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

©2024 GRAS Group, Inc.RSS