Partager via


GlobalObjectProvider.IObjectWithSite.GetSite(Guid, IntPtr) Method

Definition

Gets the service provider.

 virtual void Microsoft.VisualStudio.OLE.Interop.IObjectWithSite.GetSite(Guid % riid, [Runtime::InteropServices::Out] IntPtr % ppv) = Microsoft::VisualStudio::OLE::Interop::IObjectWithSite::GetSite;
void IObjectWithSite.GetSite (ref Guid riid, out IntPtr ppv);
abstract member Microsoft.VisualStudio.OLE.Interop.IObjectWithSite.GetSite : Guid * nativeint -> unit
override this.Microsoft.VisualStudio.OLE.Interop.IObjectWithSite.GetSite : Guid * nativeint -> unit
Sub GetSite (ByRef riid As Guid, ByRef ppv As IntPtr) Implements IObjectWithSite.GetSite

Parameters

riid
Guid

The GUID of the service provider.

ppv
IntPtr

nativeint

[out] Returns a pointer to the service provider as an IObjectWithSite.

Implements

Exceptions

An internal IServiceProvider has not been set by a call to Microsoft.VisualStudio.Shell.Design.GlobalObjectProvider.Microsoft.VisualStudio.OLE.Interop.IObjectWithSite.SetSite(System.Object) or the provider cannot be cast to the IObjectWithSite type.

Applies to