次の方法で共有


ServiceBase.MaxNameLength フィールド

サービス名の最大サイズを示します。

Public Const MaxNameLength As Integer
[C#]
public const int MaxNameLength;
[C++]
public: const int MaxNameLength;
[JScript]
public var MaxNameLength : int;

解説

ServiceName および DisplayName の両方にはサイズ制限があります。これらのプロパティをサービス クラスに設定するときは、この制限を守る必要があります。

必要条件

プラットフォーム: Windows NT Server 4.0, Windows NT Workstation 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

参照

ServiceBase クラス | ServiceBase メンバ | System.ServiceProcess 名前空間 | ServiceName