Share via


LanguageService.RemoveCodeWindowManager Method

Called when the view associated with the specified CodeWindowManager is closed.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)

Syntax

'Declaration
Public Sub RemoveCodeWindowManager ( _
    m As CodeWindowManager _
)
public void RemoveCodeWindowManager(
    CodeWindowManager m
)
public:
void RemoveCodeWindowManager(
    CodeWindowManager^ m
)
member RemoveCodeWindowManager : 
        m:CodeWindowManager -> unit
public function RemoveCodeWindowManager(
    m : CodeWindowManager
)

Parameters

Remarks

This method can be used to undo any handling in AddCodeWindowManager that is specific to your language service. However, in order to clean up from your implementation of AddCodeWindowManager, you must derive a class from the LanguageService class and implement RemoveCodeWindowManager. Be sure to call the base version of this method after you have completed your own clean up.

The base method removes the specified CodeWindowManager object from an internal list of code window manager objects. This method is typically called from CodeWindowManager.RemoveAdornments that is in turn called when the associated text view is closed.

.NET Framework Security

See Also

Reference

LanguageService Class

Microsoft.VisualStudio.Package Namespace