ServiceInstaller.Description プロパティ
アセンブリ: System.ServiceProcess (system.serviceprocess.dll 内)
構文<ComVisibleAttribute(False)> _ Public Property Description As String
Dim instance As ServiceInstaller Dim value As String value = instance.Description instance.Description = value
[ComVisibleAttribute(false)] public: property String^ Description { String^ get (); void set (String^ value); }
/** @property */ public String get_Description () /** @property */ public void set_Description (String value)
サービスの説明。既定値は空の文字列 ("") です。
解説Description プロパティを使用して、インストールされたサービスの目的をユーザーに対して説明します。ユーザーは、インストールされたサービスの詳細を示すサービスの説明をアプリケーションで表示できます。
たとえば、Windows XP を使用する場合は、サービスの説明をサービス コントロール コマンド ライン ユーティリティ (Sc.exe) を使用して、または [コンピュータの管理] コンソールの [サービス] ノードで表示できます。
使用例新しい Windows サービス アプリケーションインストール プロパティを設定するコードの例を次に示します。この例は、サービス名を表示名および説明と共に設定します。サービスのインストール プロパティを割り当てた後で、ServiceInstaller オブジェクトが Installers コレクションに追加されています。
simpleServiceProcessInstaller = new ServiceProcessInstaller(); simpleServiceInstaller = new ServiceInstaller(); // Set the account properties for the service process. simpleServiceProcessInstaller.Account = ServiceAccount.LocalService; // Set the installation properties for the service. // The ServiceInstaller.ServiceName must match the // ServiceBase.ServiceName set in the service // implementation that is installed by this installer. simpleServiceInstaller.ServiceName = "SimpleService"; simpleServiceInstaller.DisplayName = "Simple Service"; simpleServiceInstaller.Description = "A simple service that runs on the local computer."; simpleServiceInstaller.StartType = ServiceStartMode.Manual; // Add the installers to the Installer collection. Installers.Add(simpleServiceInstaller); Installers.Add(simpleServiceProcessInstaller);
.NET Framework のセキュリティ
プラットフォームWindows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
バージョン情報
参照Weblioに収録されているすべての辞書からServiceInstaller.Description プロパティを検索する場合は、下記のリンクをクリックしてください。
全ての辞書からServiceInstaller.Description プロパティ
を検索
- ServiceInstaller.Description プロパティのページへのリンク