RegistrationAttribute.RegistrationContext.CreateKey(String) Method
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.
Creates a new registration key by name.
public:
abstract Microsoft::VisualStudio::Shell::RegistrationAttribute::Key ^ CreateKey(System::String ^ name);
public abstract Microsoft.VisualStudio.Shell.RegistrationAttribute.Key CreateKey (string name);
abstract member CreateKey : string -> Microsoft.VisualStudio.Shell.RegistrationAttribute.Key
Public MustOverride Function CreateKey (name As String) As RegistrationAttribute.Key
Parameters
- name
- String
The name of the key to create.
Returns
A new RegistrationAttribute.Key object.
Remarks
The new RegistrationAttribute.Key object can be used to set registration information. The key is created under the correct Visual Studio registry root. This method is typically called from within the Register of a class derived from RegistrationAttribute.
Always close or dispose this key when finished with it.