InstallContext.IsParameterTrue メソッド
アセンブリ: System.Configuration.Install (system.configuration.install.dll 内)

Dim instance As InstallContext Dim paramName As String Dim returnValue As Boolean returnValue = instance.IsParameterTrue(paramName)
戻り値
指定したパラメータが "yes"、"true"、"1"、または空の文字列 ("") の場合は true。それ以外の場合は false。


InstallContext クラスのクラス概要に示されているサンプルの抜粋を次に示します。
このサンプルでは、LogtoConsole パラメータが設定されているかどうかを確認するために、IsParameterTrue メソッドを使用します。yes の場合、これは LogMessage メソッドを使用してステータス メッセージをインストール ログ ファイルとコンソールに書き込みます。
' Check wether the "LogtoConsole" parameter has been set. If myInstallContext.IsParameterTrue("LogtoConsole") = True Then ' Display the message to the console and add it to the logfile. myInstallContext.LogMessage("The 'Install' method has been called") End If
// Check whether the "LogtoConsole" parameter has been set. if( myInstallContext.IsParameterTrue( "LogtoConsole" ) == true ) { // Display the message to the console and add it to the logfile. myInstallContext.LogMessage( "The 'Install' method has been called" ); }


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に収録されているすべての辞書からInstallContext.IsParameterTrue メソッドを検索する場合は、下記のリンクをクリックしてください。

- InstallContext.IsParameterTrue メソッドのページへのリンク