Visual Basic (Declaration) | |
---|---|
Public Shared Function Create( _ ByVal serviceName As String, _ ByVal displayName As String, _ ByVal interactive As Boolean, _ ByVal startupType As ServiceStartMode, _ ByVal exePath As String, _ ByVal arguments() As String, _ ByVal accountName As String, _ ByVal password As String _ ) As SvcControlManager |
C# | |
---|---|
public static SvcControlManager Create( string serviceName, string displayName, bool interactive, ServiceStartMode startupType, string exePath, string[] arguments, string accountName, string password ) |
Parameters
- serviceName
- displayName
- interactive
- startupType
- exePath
- arguments
- accountName
- password
Exception | Description |
---|---|
System.ComponentModel.Win32Exception |
Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7