ProvideLanguageCodeExpansionAttribute.Unregister Method
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Removes all of the registry keys and entries as specified by the class constructor.
Namespace: Microsoft.VisualStudio.Shell
Assemblies: Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
Syntax
‘선언
Public Overrides Sub Unregister ( _
context As RegistrationAttribute..::..RegistrationContext _
)
‘사용 방법
Dim instance As ProvideLanguageCodeExpansionAttribute
Dim context As RegistrationAttribute..::..RegistrationContext
instance.Unregister(context)
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
- context
Type: Microsoft.VisualStudio.Shell.RegistrationAttribute.RegistrationContext
[in] A RegistrationAttribute.RegistrationContext object used to manage registry keys.
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
ProvideLanguageCodeExpansionAttribute Class