DefaultRegistryRootAttribute(String) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new DefaultRegistryRootAttribute object with the given registry root.
public:
DefaultRegistryRootAttribute(System::String ^ root);
public:
DefaultRegistryRootAttribute(Platform::String ^ root);
DefaultRegistryRootAttribute(std::wstring const & root);
public DefaultRegistryRootAttribute (string root);
new Microsoft.VisualStudio.Shell.DefaultRegistryRootAttribute : string -> Microsoft.VisualStudio.Shell.DefaultRegistryRootAttribute
Public Sub New (root As String)
Parameters
- root
- String
The default registry root used to register VSPackage information.
Exceptions
The constructor throws an ArgumentNullException if the root argument is null.
Examples
The following Visual C# code applies the DefaultRegistryRoot
attribute to a VSPackage named MyVSPackage.
using Microsoft.VisualStudio.Shell;
using MSVSIP = Microsoft.VisualStudio.Shell;
[MSVSIP.DefaultRegistryRoot("Software\\Microsoft\\VisualStudio\\8.0Exp")]
public class MyVSPackage : MSVSIP.Package {}