다음을 통해 공유


LanguageService.RemoveCodeWindowManager(CodeWindowManager) Method

Definition

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

public:
 void RemoveCodeWindowManager(Microsoft::VisualStudio::Package::CodeWindowManager ^ m);
void RemoveCodeWindowManager(Microsoft::VisualStudio::Package::CodeWindowManager const & m);
public void RemoveCodeWindowManager (Microsoft.VisualStudio.Package.CodeWindowManager m);
member this.RemoveCodeWindowManager : Microsoft.VisualStudio.Package.CodeWindowManager -> unit
Public Sub RemoveCodeWindowManager (m As CodeWindowManager)

Parameters

m
CodeWindowManager

[in] The CodeWindowManager object that is being closed.

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 Microsoft.VisualStudio.Package.CodeWindowManager.RemoveAdornments that is in turn called when the associated text view is closed.

Applies to