Compartir a través de


DefaultRegistryRootAttribute.Root Property

Gets the value of the default registry root for the VSPackage.

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

Syntax

'Declaración
Public ReadOnly Property Root As String
public string Root { get; }

Property Value

Type: System.String
The value of the default registry root for the VSPackage.

Remarks

The registry root stored in DefaultRegistryRootAttribute is relative to HKEY_LOCAL_MACHINE. For example, a value of Software\\Microsoft\\VisualStudio\\8.0Exp corresponds to the registry key HKEY_LOCAL_MACHINE\Software\Microsoft\VisualStudio\8.0Exp.

Automatic registration tools such as regpkg.exe register the VSPackage into the registry root stored in DefaultRegistryRootAttribute unless the registration tool provides an alternate registry root, for example, as a command line argument.

.NET Framework Security

See Also

Reference

DefaultRegistryRootAttribute Class

Microsoft.VisualStudio.Shell Namespace