Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the path to user data storage for Visual Studio.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)
Syntax
'Declaration
Public ReadOnly Property UserDataPath As String
public string UserDataPath { get; }
public:
property String^ UserDataPath {
String^ get ();
}
member UserDataPath : string with get
function get UserDataPath () : String
Property Value
Type: String
The path to user data storage.
Remarks
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.