Compartir a través de


IDocumentSite2.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.

Implements

Remarks

C++

From objext.idl:

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

Applies to