ServiceControllerCreateService Method |
Creates the service.
Namespace:
Xcalibur.Controllers
Assembly:
Xcalibur.Controllers (in Xcalibur.Controllers.dll) Version: 1.0.5.0 (1.0.0.0)
Syntax public static EnumsServiceCreationStatus CreateService(
string serviceName,
string description,
string fullFilePath,
string name,
bool isAuto = true,
string user = "",
SecureString password = null
)
Public Shared Function CreateService (
serviceName As String,
description As String,
fullFilePath As String,
name As String,
Optional isAuto As Boolean = true,
Optional user As String = "",
Optional password As SecureString = Nothing
) As EnumsServiceCreationStatus
public:
static EnumsServiceCreationStatus CreateService(
String^ serviceName,
String^ description,
String^ fullFilePath,
String^ name,
bool isAuto = true,
String^ user = L"",
SecureString^ password = nullptr
)
static member CreateService :
serviceName : string *
description : string *
fullFilePath : string *
name : string *
?isAuto : bool *
?user : string *
?password : SecureString
(* Defaults:
let _isAuto = defaultArg isAuto true
let _user = defaultArg user ""
let _password = defaultArg password null
*)
-> EnumsServiceCreationStatus
Parameters
- serviceName
- Type: SystemString
Name of the service. - description
- Type: SystemString
The description. - fullFilePath
- Type: SystemString
The full file path. - name
- Type: SystemString
The name. - isAuto (Optional)
- Type: SystemBoolean
if set to true [is automatic]. - user (Optional)
- Type: SystemString
The user. - password (Optional)
- Type: System.SecuritySecureString
The password.
Return Value
Type:
EnumsServiceCreationStatusSee Also