Metodo ProvideObjectAttribute.Register

Vengono fornite informazioni di registrazione su un VSPackage una volta chiamato da uno strumento esterno di registrazione come regpkg.exe.Per ulteriori informazioni, vedere Registrare package VS..

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

Sintassi

'Dichiarazione
Public Overrides Sub Register ( _
    context As RegistrationAttribute.RegistrationContext _
)
public override void Register(
    RegistrationAttribute.RegistrationContext context
)

Parametri

Note

Package VS che implementa la classe di ProvideObjectAttribute non deve chiamare il metodo di Register .l'entity_M:Microsoft.VisualStudio.Shell.ProvideObjectAttribute.Register(Microsoft.VisualStudio.Shell.RegistrationAttribute.RegistrationContext) viene chiamato dagli strumenti di registrazione.

Voci del Registro di sistema

  • Le seguenti voci del Registro di sistema vengono create dalla classedi ProvideObjectAttribute:

  • <VSROOT> \CLSID\{ObjectGuid}

  • <VSROOT> \CLSID\{ObjectGuid}\@=ObjectType.FullName

  • <VSROOT> \CLSID\{ObjectGuid}\InprocServer 32=mscoree.dll

  • <VSROOT> \CLSID\{ObjectGuid}\Class=ObjectType.FullName

  • <VSROOT> \CLSID\{ObjectGuid}\Assembly=ObjectType.Assembly.FullName

  • <VSROOT> \CLSID\{ObjectGuid}\ThreadingModel=Both

  • <VSROOT> \CLSID\{PackageGuid}\CodeBase=context.CodeBase

Sicurezza di .NET Framework

Vedere anche

Riferimenti

ProvideObjectAttribute Classe

Spazio dei nomi Microsoft.VisualStudio.Shell