Share via


Metodo RegistrationAttribute.RegistrationContext.CreateKey

crea un nuovo codice di registrazione per nome.

Spazio dei nomi:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.Immutable.10.0 (in Microsoft.VisualStudio.Shell.Immutable.10.0.dll)

Sintassi

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

Parametri

Valore restituito

Tipo: Microsoft.VisualStudio.Shell.RegistrationAttribute.Key
un nuovo RegistrationAttribute.Key oggetto.

Note

il nuovo RegistrationAttribute.Key l'oggetto può essere utilizzato per impostare le informazioni di registrazione.La chiave viene creata sotto il corretto Visual Studio chiave radice del Registro di sistema.Questo metodo viene chiamato dal Register di una classe derivata da RegistrationAttribute.

Sempre chiudere o eliminare questa chiave una volta terminata.

Sicurezza di .NET Framework

Vedere anche

Riferimenti

RegistrationAttribute.RegistrationContext Classe

Spazio dei nomi Microsoft.VisualStudio.Shell

RegistrationAttribute.RegistrationContext

RemoveKey

Register

RegistrationAttribute