Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

ProcessStartInfo.LoadUserProfile Property

Gets or sets a value that indicates whether the Windows user profile is to be loaded from the registry.

Namespace: System.Diagnostics
Assembly: System (in system.dll)

public bool LoadUserProfile { get; set; }
/** @property */
public boolean get_LoadUserProfile ()

/** @property */
public void set_LoadUserProfile (boolean value)

public function get LoadUserProfile () : boolean

public function set LoadUserProfile (value : boolean)

Not applicable.

Property Value

true to load the Windows user profile; otherwise, false.

This property is referenced if the process is being started by using the user name, password, and domain.

If the value is true, the user's profile in the HKEY_USERS registry key is loaded. Loading the profile can be time-consuming. Therefore, it is best to use this value only if you must access the information in the HKEY_CURRENT_USER registry key.

In Windows Server 2003 and Windows 2000, the profile is unloaded after the new process has been terminated, regardless of whether the process has created child processes.

In Windows XP, the profile is unloaded after the new process and all child processes it has created have been terminated.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.