Was this page helpful?
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ServiceBase.MaxNameLength Field


Indicates the maximum size for a service name.

Namespace:   System.ServiceProcess
Assembly:  System.ServiceProcess (in System.ServiceProcess.dll)

public const int MaxNameLength

Field Value

Type: System.Int32

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

.NET Framework
Available since 1.1
Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft