Compartir a través de


ProvideLanguageExtensionAttribute.Unregister Method

Definition

Removes the file extension and language service GUID from the registry.

public:
 override void Unregister(Microsoft::VisualStudio::Shell::RegistrationAttribute::RegistrationContext ^ context);
 override void Unregister(Microsoft::VisualStudio::Shell::RegistrationAttribute::RegistrationContext const & context);
public override void Unregister (Microsoft.VisualStudio.Shell.RegistrationAttribute.RegistrationContext context);
override this.Unregister : Microsoft.VisualStudio.Shell.RegistrationAttribute.RegistrationContext -> unit
Public Overrides Sub Unregister (context As RegistrationAttribute.RegistrationContext)

Parameters

context
RegistrationAttribute.RegistrationContext

[in] A RegistrationAttribute.RegistrationContext object used to remove registry keys and to log progress.

Remarks

This method is called to remove all of the registry entries created by the Register method. Typically, a program such as regpkg.exe reads a specified assembly and looks for all attributes that inherit from the RegistrationAttribute. Regpkg.exe then instantiates each attribute, supplying the appropriate parameters that were specified when the attribute was compiled. Finally, regpkg.exe calls the Unregister method on the newly created object to cause all of the appropriate registry keys and entries to be removed. This is done as part of an uninstall process or when Clean Solution is selected from the Build menu.

Note that this method is an override of and specific to the managed package framework (MPF) RegistrationAttribute class.

Applies to