IDocumentSite2::SetSite Method (IServiceProvider^)
Visual Studio 2015
Sets the IServiceProvider interface for the document site.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Parameters
- pSite
-
Type:
Microsoft.VisualStudio.OLE.Interop::IServiceProvider^
[in] The IServiceProvider interface to use for the document site.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
C++
From objext.idl:
HRESULT IDocumentSite2::SetSite( [in] IServiceProvider* pSite );
Show: