System.Windows.Forms.Application.UserAppDataPath Property

Gets the path for the application data of a user.

Syntax

public static string UserAppDataPath { get; }

Value

Documentation for this section has not yet been entered.

Remarks

If a path does not exist, one is created in the following format:

Base Path\Application.CompanyName\Application.ProductName\Application.ProductVersion

Data stored in this path is part of user profile that is enabled for roaming. A roaming user works on more than one computer in a network. The user profile for a roaming user is kept on a server on the network and is loaded onto a system when the user logs on. For a user profile to be considered for roaming, the operating system must support roaming profiles and it must be enabled.

A typical base path is C:\Documents and Settings\username\Application Data. This path will be different, however, if the Windows Forms application is deployed by using ndptecclick. ndptecclick creates its own application data directory that is isolated from all other applications. For more information, see Accessing Local and Remote Data in ClickOnce Applications.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0