Package.UserDataPath Property

 

Gets the path to user data storage for Visual Studio.

Namespace:   Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)

public string UserDataPath { get; }

Property Value

Type: System.String

The path to user data storage.

The UserDataPath property returns a path that can be used to store program state for the current user. This path is typically located at:

%USERPROFILE%\Application Data\Microsoft\Visual Studio\<version>, but this can change based on any alternate root that the shell was initialized with.

Return to top
Show: