次の方法で共有


RegistrationAttribute.RegistrationContext.CreateKey Method

Creates a new registration key by name.

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

Syntax

'宣言
Public MustOverride Function CreateKey ( _
    name As String _
) As RegistrationAttribute..::.Key
'使用
Dim instance As RegistrationAttribute..::.RegistrationContext
Dim name As String
Dim returnValue As RegistrationAttribute..::.Key

returnValue = instance.CreateKey(name)
public abstract RegistrationAttribute..::.Key CreateKey(
    string name
)
public:
virtual RegistrationAttribute..::.Key^ CreateKey(
    String^ name
) abstract
public abstract function CreateKey(
    name : String
) : RegistrationAttribute..::.Key

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.

Permissions

See Also

Reference

RegistrationAttribute.RegistrationContext Class

RegistrationAttribute.RegistrationContext Members

Microsoft.VisualStudio.Shell Namespace

RegistrationAttribute.RegistrationContext

RemoveKey

Register

RegistrationAttribute