DefaultRegistryRootAttribute Constructor
Initializes a new DefaultRegistryRootAttribute object with the given registry root.
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
'Dichiarazione
Public Sub New ( _
root As String _
)
'Utilizzo
Dim root As String
Dim instance As New DefaultRegistryRootAttribute(root)
public DefaultRegistryRootAttribute(
string root
)
public:
DefaultRegistryRootAttribute(
String^ root
)
new :
root:string -> DefaultRegistryRootAttribute
public function DefaultRegistryRootAttribute(
root : String
)
Parameters
- root
Type: System.String
The default registry root used to register VSPackage information.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | 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 {}
.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