ServiceProviderWithSite.IObjectWithSite.GetSite Method (Guid, IntPtr)

 

Retrieves the last site set using the IObjectWithSite.SetSite method. If there is no known site, an exception is thrown.

Namespace:   Microsoft.VisualStudio.Data
Assembly:  Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)

void IObjectWithSite.GetSite(
	ref Guid riid,
	out IntPtr ppvSite
)

Parameters

riid
Type: System.Guid

The interface ID (IID) of the interface pointer returnable in the ppvSite parameter.

ppvSite
Type: System.IntPtr

Address of the pointer variable that receives the interface pointer request in the riid parameter.

Provides a managed implementation of the GetSite method.

Return to top
Show: