IDocumentSite2.GetSite(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.
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
);