ObjectWithSite.IObjectWithSite.GetSite(Guid, IntPtr) Method

Definition

Retrieves the last site set using the IObjectWithSite.SetSite(Object) method. In cases where there is no known site, the object returns an exception.

C++
 virtual void Microsoft.VisualStudio.OLE.Interop.IObjectWithSite.GetSite(Guid % riid, [Runtime::InteropServices::Out] IntPtr % ppvSite) = Microsoft::VisualStudio::OLE::Interop::IObjectWithSite::GetSite;

Parameters

riid
Guid

Provides the IID of the interface pointer returned in the ppvSite parameter.

ppvSite
IntPtr

The address of the caller's void variable in which the object stores the interface pointer of the site last seen in the M:Microsoft.VisualStudio.Data.ObjectWithSite.Microsoft.VisualStudio.OLE.Interop.IObjectWithSite.SetSite(System.Object) method.

Implements

Applies to

Proizvod Verzije
Visual Studio SDK 2017, 2019, 2022