Returns the roaming user profile path for the currently running software application: {SpecialFolder.ApplicationData}\{CompanyName}\{ProductName}
Syntax
Visual Basic (Declaration) | |
---|
Public Shared ReadOnly ApplicationData As String |
C# | |
---|
public static readonly string ApplicationData |
Example
Library/Library.Test/TestSerializers.cs
C# | Copy Code |
---|
if(Directory.Exists(Constants.ApplicationData)) Directory.Delete(Constants.ApplicationData, true);
if (Directory.Exists(Constants.LocalApplicationData)) Directory.Delete(Constants.LocalApplicationData, true); |
VB.NET | Copy Code |
---|
If Directory.Exists(Constants.ApplicationData) Then
Directory.Delete(Constants.ApplicationData, True)
End If
If Directory.Exists(Constants.LocalApplicationData) Then
Directory.Delete(Constants.LocalApplicationData, True)
End If |
Requirements
Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7
See Also