CSharpTest.Net
LocalApplicationData Field
See Also  Example Send Feedback Download Help File
CSharpTest.Net.Library Assembly > CSharpTest.Net Namespace > Constants Class : LocalApplicationData Field

Glossary Item Box

Returns the non-roaming user profile path for the currently running software application: {SpecialFolder.LocalApplicationData}\{CompanyName}\{ProductName}

Syntax

Visual Basic (Declaration) 
Public Shared ReadOnly LocalApplicationData As String
C# 
public static readonly string LocalApplicationData

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.NETCopy 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

Generated with Document! X 2011 by Innovasys