다음을 통해 공유


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

Implements

Remarks

COM Signature

From objext.idl:

[C++]

HRESULT IDocumentSite2::GetSite(  
   [out] IServiceProvider** ppSite  
);  

Applies to