IDocumentSite2::GetSite Method (IServiceProvider^)

 

Returns the IServiceProvider interface for the document site. Typically returns the value set by SetSite.

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

int GetSite(
	[OutAttribute] IServiceProvider^% ppSite
)

Parameters

ppSite
Type: Microsoft.VisualStudio.OLE.Interop::IServiceProvider^

[out] The IServiceProvider interface for the document site.

Return Value

Type: System::Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

From objext.idl:

[C++]

HRESULT IDocumentSite2::GetSite(
   [out] IServiceProvider** ppSite
);
Return to top
Show: