Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Gets the value of the default registry root for the VSPackage.
Namespace: Microsoft.VisualStudio.Shell
Assemblies: Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
Syntax
'Declaration
Public ReadOnly Property Root As String
Get
'Usage
Dim instance As DefaultRegistryRootAttribute
Dim value As String
value = instance.Root
public string Root { get; }
public:
property String^ Root {
String^ get ();
}
member Root : string
function get Root () : String
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
- 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.
See Also
Reference
DefaultRegistryRootAttribute Class