Export (0) Print
Expand All

ProcessStartInfo.LoadUserProfile Property

Updated: October 2011

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 Value

Type: System.Boolean
true to load the Windows user profile; otherwise, false. The default is 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 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0

Date

History

Reason

October 2011

Added default value.

Information enhancement.

Community Additions

ADD
Show:
© 2014 Microsoft