InstallContext コンストラクタ ()とは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > InstallContext コンストラクタ ()の意味・解説 

InstallContext コンストラクタ ()

InstallContext クラス新しインスタンス初期化します。

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

Dim instance As New InstallContext
public InstallContext ()
public:
InstallContext ()
public InstallContext ()
public function InstallContext ()
解説解説
使用例使用例
メモメモ

InstallContext コンストラクタオーバーロードされたバージョンいずれか使用方法次の例に示しますその他の例については、個々オーバーロードトピック参照してください

引数なしでプログラム起動すると、空の InstallContext作成されます。

' There are no command line arguments, create an empty 'InstallContext'.
myInstallObject.myInstallContext = New InstallContext()
// There are no command line arguments, create an empty 'InstallContext'.
myInstallObject.myInstallContext = new InstallContext();
// There are no command line arguments, create an empty 'InstallContext'.
myInstallObject->myInstallContext = gcnew InstallContext;
// There are no command line arguments, create an empty
//'InstallContext'.
myInstallObject.myInstallContext = new InstallContext();
.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
InstallContext クラス
InstallContext メンバ
System.Configuration.Install 名前空間

InstallContext コンストラクタ (String, String[])

InstallContext クラス新しインスタンス初期化しインストール用のログ ファイル作成します

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

Public Sub New ( _
    logFilePath As String, _
    commandLine As String() _
)
Dim logFilePath As String
Dim commandLine As String()

Dim instance As New InstallContext(logFilePath,
 commandLine)
public InstallContext (
    string logFilePath,
    string[] commandLine
)
public:
InstallContext (
    String^ logFilePath, 
    array<String^>^ commandLine
)
public InstallContext (
    String logFilePath, 
    String[] commandLine
)
public function InstallContext (
    logFilePath : String, 
    commandLine : String[]
)

パラメータ

logFilePath

インストール用のログ ファイルパスログ ファイル作成しない場合null 参照 (Visual Basic では Nothing)。

commandLine

セットアップ プログラム実行時入力されコマンド ライン パラメータ入力されなかった場合null 参照 (Visual Basic では Nothing)。

解説解説
使用例使用例

この例は、InstallContext クラス概要紹介されているクラスの例からの抜粋です。

"/LogFile" および "/LogtoConsole" を指定した場合それぞれの引数を InstallContext に渡してInstallContext作成されます。

' Create an InstallContext object with the given parameters.
Dim commandLine() As String
 = New String(args.Length - 2) {}
Dim i As Integer
For i = 1 To args.Length - 1
   commandLine(i-1) = args(i)
Next i
myInstallObject.myInstallContext = _
   New InstallContext("/LogFile:example.log",
 commandLine)
// Create an InstallContext object with the given parameters.
String[] commandLine = new string[ args.Length
 ];
for( int i = 0; i < args.Length; i++ )
{
   commandLine[ i ] = args[ i ];
}
myInstallObject.myInstallContext = new InstallContext( args[ 0
 ], commandLine);
// Create an InstallContext object with the given parameters.
array<String^>^commandLine = gcnew array<String^>(args->Length - 1);
for ( int i = 0; i < args->Length - 1;
 i++ )
{
   commandLine[ i ] = args[ i + 1 ];
}
myInstallObject->myInstallContext = gcnew InstallContext( args[ 1 ],commandLine
 );
// Create an InstallContext object with the given parameters.
String commandLine[] = new String[args.length];
for (int i = 0; i < args.length; i++) {
    commandLine.set_Item(i, args[i]);
}
myInstallObject.myInstallContext = 
    new InstallContext(args[0], commandLine);
.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
InstallContext クラス
InstallContext メンバ
System.Configuration.Install 名前空間
Parameters
LogMessage

InstallContext コンストラクタ

InstallContext クラス新しインスタンス初期化します。
オーバーロードの一覧オーバーロードの一覧

参照参照

関連項目

InstallContext クラス
InstallContext メンバ
System.Configuration.Install 名前空間



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

辞書ショートカット

すべての辞書の索引

「InstallContext コンストラクタ ()」の関連用語

InstallContext コンストラクタ ()のお隣キーワード
検索ランキング

   

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



InstallContext コンストラクタ ()のページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2024 GRAS Group, Inc.RSS