API Reference
Class
ServiceNameValidator
Provides validation helpers for Windows service names used in deployment workflows.
Inheritance
- Object
- ServiceNameValidator
Methods
public static Boolean IsValid(String serviceName) #Returns:
BooleanDetermines whether the supplied service name is valid for service deployment commands.
Parameters
- serviceName System.String
- Windows service name.
Returns
true when the name is valid; otherwise false.
public static Void Validate(String serviceName) #Returns:
VoidValidates the supplied service name and throws when invalid.
Parameters
- serviceName System.String
- Windows service name.