RegistrationAttribute.RegistrationContext.CreateKey(String) Method

Definition

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.

Applies to