Freigeben über


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)

Syntax

'Declaration
<InterfaceTypeAttribute()> _
<GuidAttribute("61D4A8A1-2C90-11D2-ADE4-00C04F98F417")> _
Public Interface IDocumentSite2 _
    Inherits IDocumentSite
[InterfaceTypeAttribute()]
[GuidAttribute("61D4A8A1-2C90-11D2-ADE4-00C04F98F417")]
public interface IDocumentSite2 : IDocumentSite
[InterfaceTypeAttribute()]
[GuidAttribute(L"61D4A8A1-2C90-11D2-ADE4-00C04F98F417")]
public interface class IDocumentSite2 : IDocumentSite
[<InterfaceTypeAttribute()>]
[<GuidAttribute("61D4A8A1-2C90-11D2-ADE4-00C04F98F417")>]
type IDocumentSite2 =  
    interface 
        interface IDocumentSite 
    end
public interface IDocumentSite2 extends IDocumentSite

The IDocumentSite2 type exposes the following members.

Methods

  Name Description
Public method ActivateObject Activates the document object.
Public method GetCompiler Returns the requested interface of the compiler for the document.
Public method GetObject Returns the IDispatch interface of the object.
Public method GetSite Returns the IServiceProvider interface for the document site. Typically returns the value set by SetSite.
Public method IsObjectShowable Indicates whether or not the object is showable.
Public method SetSite Sets the IServiceProvider interface for the document site.

Top

See Also

Reference

Microsoft.VisualStudio.Shell.Interop Namespace