다음을 통해 공유


CompletionSet.Close Method

Closes the completion list display.

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

Syntax

'Declaration
Public Overridable Sub Close
public virtual void Close()
public:
virtual void Close()
abstract Close : unit -> unit  
override Close : unit -> unit
public function Close()

Remarks

This method closes the completion list display if it is open, and disposes any allocations the CompletionSet class may have made. If you derive a class from the CompletionSet class, you must override this method to deallocate any resources you have allocated and then call the base version of this method.

The base method calls the UpdateCompletionStatus method on the IVsTextView object that was passed to the Init method with a nulla null reference (Nothing in Visual Basic) value to have Visual Studio close the completion list display. The base method then calls Dispose on the Declarations object.

.NET Framework Security

See Also

Reference

CompletionSet Class

Microsoft.VisualStudio.Package Namespace