Partager via


IDocumentSite.GetSite(IServiceProvider) Method

Definition

Returns the IServiceProvider interface for the document site. Typically returns the value set by SetSite(IServiceProvider).

public:
 int GetSite([Runtime::InteropServices::Out] Microsoft::VisualStudio::OLE::Interop::IServiceProvider ^ % ppSite);
public:
 int GetSite([Runtime::InteropServices::Out] Microsoft::VisualStudio::OLE::Interop::IServiceProvider ^ &  ppSite);
int GetSite([Runtime::InteropServices::Out] Microsoft::VisualStudio::OLE::Interop::IServiceProvider const & & ppSite);
public int GetSite (out Microsoft.VisualStudio.OLE.Interop.IServiceProvider ppSite);
abstract member GetSite : IServiceProvider -> int
Public Function GetSite (ByRef ppSite As IServiceProvider) As Integer

Parameters

ppSite
IServiceProvider

[out] The IServiceProvider interface 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::GetSite(  
   [out] IServiceProvider** ppSite  
);  

Applies to