UtilWinStartupAdd Method

Adds an application to Windows Startup through registry.

Definition

Namespace: DevCase.Core.Windows.Applications
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static void Add(
	RegistryScope registryScope,
	WinStartupScope startupScope,
	RegistryView registryView,
	string title,
	string filePath,
	string arguments = "",
	bool secureModeByPass = false
)

Parameters

registryScope  RegistryScope
The registry user scope.
startupScope  WinStartupScope
The win-startup key scope.
registryView  RegistryView
The system-key scope.
title  String
The registry entry title.
filePath  String
The application file path.
arguments  String  (Optional)

[Missing <param name="arguments"/> documentation for "M:DevCase.Core.Windows.Applications.UtilWinStartup.Add(DevCase.Core.Windows.Registry.RegistryScope,DevCase.Core.Windows.Applications.WinStartupScope,Microsoft.Win32.RegistryView,System.String,System.String,System.String,System.Boolean)"]

secureModeByPass  Boolean  (Optional)
If set to , the file is ran even when the user logs into 'Secure Mode' on Windows.

Example

This is a code example.
C#
No code example is currently available or this language may not be supported.

Exceptions

ArgumentNullException title or filePath

See Also