Share via


ProvideLoadKeyAttribute.Unregister Method

Removes the registration information about a VSPackage when called by an external registration tool such as regpkg.exe.

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

Syntax

'Declaration
Public Overrides Sub Unregister ( _
    context As RegistrationAttribute.RegistrationContext _
)
public override void Unregister(
    RegistrationAttribute.RegistrationContext context
)
public:
virtual void Unregister(
    RegistrationAttribute::RegistrationContext^ context
) override
abstract Unregister : 
        context:RegistrationAttribute.RegistrationContext -> unit  
override Unregister : 
        context:RegistrationAttribute.RegistrationContext -> unit
public override function Unregister(
    context : RegistrationAttribute.RegistrationContext
)

Parameters

Remarks

Important

Packages that target Visual Studio 2010 only do not need a package load key.

Packages that target Visual Studio 2008 and earlier must have a package load key in order to validate and load VSPackages. This includes VSPackages provided by third parties, regardless of whether the hosting version of Visual Studio has a VSIP license.

VSPackages that implement the ProvideLoadKeyAttributeclass need to override the UnRegister method, but do not need to invoke it.

.NET Framework Security

See Also

Reference

ProvideLoadKeyAttribute Class

Microsoft.VisualStudio.Shell Namespace