Partager via


IDocumentSite.SetSite(IServiceProvider) Method

Definition

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.

Remarks

COM Signature

From objext.idl:

HRESULT IDocumentSite::SetSite(  
   [in] IServiceProvider* pSite  
);  

Applies to