We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

IDocumentSite2 Interface

Maintains information and supplies methods for the parent object of the document. This interface extends and inherits from IDocumentSite.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

public interface IDocumentSite2 : IDocumentSite

The IDocumentSite2 type exposes the following members.

Public methodActivateObjectActivates the document object.
Public methodGetCompilerReturns the requested interface of the compiler for the document.
Public methodGetObjectReturns the IDispatch interface of the object.
Public methodGetSiteReturns the IServiceProvider interface for the document site. Typically returns the value set by SetSite.
Public methodIsObjectShowableIndicates whether or not the object is showable.
Public methodSetSiteSets the IServiceProvider interface for the document site.