DocumentProperties.Close Method

Closes down the DocumentProperties object so that its properties are no longer visible in the Properties window.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   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.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
  Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)

Syntax

'Declaration
Public Sub Close
public void Close()
public:
void Close()
member Close : unit -> unit
public function Close()

Remarks

This method removes the DocumentProperties object from tracking and removes all of its properties from the Properties window. After this method is called, the DocumentProperties object cannot be used to show properties ever again (a new instance of the DocumentProperties class must be created to have the properties appear in the Properties window).

.NET Framework Security

See Also

Reference

DocumentProperties Class

Microsoft.VisualStudio.Package Namespace