Windows apps
Collapse the table of content
Expand the table of content
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.

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

public:
literal 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
Show:
© 2017 Microsoft