IDocumentSite2::GetSite Method (IServiceProvider^)
Visual Studio 2015
Returns the IServiceProvider interface for the document site. Typically returns the value set by SetSite.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Parameters
- ppSite
-
Type:
Microsoft.VisualStudio.OLE.Interop::IServiceProvider^
[out] The IServiceProvider interface for the document site.
Return Value
Type: System::Int32If 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 );
Show: