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

Glossary Item Box

Returns the HKCU or HKLM path for this software application based on the process that is running: Software\{CompanyName}\{ProductName}

Syntax

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

Example

Library/Library.Test/TestSerializers.cs

C#Copy Code
try {
    Registry.CurrentUser.DeleteSubKeyTree(Path.GetDirectoryName(Constants.RegistrySoftwarePath));
} catch (ArgumentException) { }
VB.NETCopy Code
Try
    Registry.CurrentUser.DeleteSubKeyTree(Path.GetDirectoryName(Constants.RegistrySoftwarePath))
Catch generatedExceptionName As ArgumentException
End Try

Requirements

Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7

See Also

Generated with Document! X 2011 by Innovasys