IDocumentSite2.SetSite(IServiceProvider) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the IServiceProvider interface for the document site.
public:
int SetSite(Microsoft::VisualStudio::OLE::Interop::IServiceProvider ^ pSite);
public:
int SetSite(Microsoft::VisualStudio::OLE::Interop::IServiceProvider ^ pSite);
int SetSite(Microsoft::VisualStudio::OLE::Interop::IServiceProvider const & pSite);
public int SetSite (Microsoft.VisualStudio.OLE.Interop.IServiceProvider pSite);
abstract member SetSite : Microsoft.VisualStudio.OLE.Interop.IServiceProvider -> int
Public Function SetSite (pSite As IServiceProvider) As Integer
Parameters
- pSite
- IServiceProvider
[in] The IServiceProvider interface to use for the document site.
Returns
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Implements
Remarks
C++
From objext.idl:
HRESULT IDocumentSite2::SetSite(
[in] IServiceProvider* pSite
);