共用方式為


RegistrationAttribute.RegistrationContext.CreateKey Method

Creates a new registration key by name.

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.Immutable.10.0 (in Microsoft.VisualStudio.Shell.Immutable.10.0.dll)

Syntax

'宣告
Public MustOverride Function CreateKey ( _
    name As String _
) As RegistrationAttribute.Key
public abstract RegistrationAttribute.Key CreateKey(
    string name
)

Parameters

Return Value

Type: Microsoft.VisualStudio.Shell.RegistrationAttribute.Key
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.

.NET Framework Security

See Also

Reference

RegistrationAttribute.RegistrationContext Class

Microsoft.VisualStudio.Shell Namespace

RegistrationAttribute.RegistrationContext

RemoveKey

Register

RegistrationAttribute