Gets the path for the application data specific to the roaming user.
[Visual Basic] Public Shared ReadOnly Property UserAppDataPath As String [C#] public static string UserAppDataPath {get;} [C++] public: __property static String* get_UserAppDataPath(); [JScript] public static function get UserAppDataPath() : String;
The path for the application data specific to the roaming user.
If a path does not exist, one will be created in the following format:
Base Path\Company Name\Product Name\Product Version
A roaming user works on more than one computer in a network. A roaming user's profile is kept on a server on the network and is loaded onto a system when the user logs on.
The following example gets the properties of the Application class and displays them in a MessageBox. It assumes that Button1 has been placed on a form.
[Visual Basic]
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) MessageBox.Show "Company Name: " & Application.CompanyName & vbnewline & _ "Product Name: " & Application.ProductName & vbnewline & _ "Product Version: " & Application.ProductVersion & vbnewline & _ "Start Up Path: " & Application.StartUpPath & vbnewline & _ "Local User Application Data Path: " & Application.LocalUserAppDataPath & vbnewline & _ "Roaming User Application Data Path: " & Application.UserAppDataPath End Sub
Application Class | Application Members | System.WinForms Namespace | UserAppDataRegistry | CommonUserAppDataPath | LocalUserAppDataPath