Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ServiceBase.MaxNameLength Field

Indicates the maximum size for a service name.

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

Remarks

ServiceName and DisplayName both have size restrictions that must be observed when setting the properties on your service class.

Requirements

Platforms: Windows NT Server 4.0, Windows NT Workstation 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

ServiceBase Class | ServiceBase Members | System.ServiceProcess Namespace | ServiceName

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft